javaee / grizzly

Writing scalable server applications in the Java™ programming language has always been difficult. Before the advent of the Java New I/O API (NIO), thread management issues made it impossible for a server to scale to thousands of users. The Grizzly NIO framework has been designed to help developers to take advantage of the Java™ NIO API.
https://javaee.github.io/grizzly/
Other
222 stars 60 forks source link

StaticHttpHandler does not decode URI before mapping it to a File #1932

Closed Plonk42 closed 7 years ago

Plonk42 commented 7 years ago

(was GRIZZLY-1922)

StaticHttpHandler does not decode received URI before mapping it to a File name. This leads to a 404 when the underlying file contains a character that needs to be URL-encoded in its name.

I think that "org.glassfish.grizzly.http.server.StaticHttpHandler.handle(final String uri, final Request request, final Response response)" should decode "uri" first.

Affected version: 2.3.23