You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2004/07/28 17:16:46 UTC

DO NOT REPLY [Bug 30368] New: - Problem with URLDecode

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30368>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30368

Problem with URLDecode

           Summary: Problem with URLDecode
           Product: Tomcat 4
           Version: 4.1.29
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: ms@docware.de


Hello,

There seems to be a problem with the URLDecoding of the pathInfo I can obtain 
with getPathInfo() of interface HttpServletRequest.

Example: be my URL :

http://localhost:8080/myapp/snoop/rel/%C3%9Cbersicht+PSS+Familie_V1.pdf

Be a servlet which handles this request mapped to "/snoop/*".
Then the pathInfo (not URLDecoded) would be: 

/rel/%C3%9Cbersicht+PSS+Familie_V1.pdf

But what Tomcat returns decoded with getPathInfo() is not correct. I cannot say 
exactly what ist wrong with the implementation of the URLDecode() method in 
class RequestUtils, but the error ist the same if I URLDecode the string 
returned by getRequestURI() with java.net.URLDecoder.decode(). Maybe this gives 
you an idea.

BTW, %C3%9C is the URLencoding of the UTF-8-encoded german U-Umlaut. 

Best Regards

Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org