Re: [enhydra] FileServerServlet doesn't decode escape sequencies in URL?
Slobodan Vujasinovic <[email protected]> Thu, 01 Sep 2005 10:09:35 +0200
| Newsgroups | gmane.comp.java.enhydra.general |
|---|---|
| Organization | PROZONE |
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format... ------------=_1125562391-4880-43 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi Peter, you are right! Problem is present in Enhydra 5.X (not in Enhydra 6.X) releases. I've made implementation adaptation of 'org.enhydra.servlet.servlets.FileServerServlet' class and committed changes to public CVS. Basically, the only addition is (as you suggested) done in servlets "doGet()" method: pathInfo = URLDecoder.decode(pathInfo); Thanks for your contribution! Regards, Slobodan Vujasinovic Enhydra Development Team Petr Stehlik wrote: >Hi all, > >the FileServerServlet seems to suffer from a serious bug - it doesn't >decode the escape sequences in URL. > >Example: http://www.server.com/path/file%20name.png > >This should return a file named "file name.png". But it doesn't - >instead it searches for file named "file%20name.png" and since there is >no such file it returns Error 404. > >This would be a one liner fix but it's weird that it hasn't been noticed >before... > >Petr > > > > > >------------------------------------------------------------------------ > > >-- >You receive this message as a subscriber of the [email protected] mailing list. >To unsubscribe: mailto:[email protected] >For general help: mailto:[email protected]?subject=help >ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > ------------=_1125562391-4880-43 Content-Type: text/plain; name="message-footer.txt" Content-Disposition: inline; filename="message-footer.txt" Content-Transfer-Encoding: 8bit -- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws ------------=_1125562391-4880-43--