tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 24283] New: - Wrong result in request.getPathInfo() using 2-byte Unicode characters
Date Fri, 31 Oct 2003 09:33:58 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24283>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24283

Wrong result in request.getPathInfo() using 2-byte Unicode characters

           Summary: Wrong result in request.getPathInfo() using 2-byte
                    Unicode characters
           Product: Tomcat 4
           Version: 4.1.27
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Servlet & JSP API
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: bugzilla.10.rz1911@spamgourmet.com


If you call a servlet with 2-byte Unicode characters in the URL
and use URL-encoded sessions e.g. with a german umlaut 'ä' like


http://192.168.1.xxx/servlet/%c3%a4;jsessionid=E3C9183C8A50CE11A10A62B4F8ADB1DE

the method request.getPathInfo() returns "ä;"

If there are more then one 2-byte Unicode characters in the URL the method
returns the count of 2-byte Unicode characters more then required e.g.

http://192.168.1.xxx/servlet/%c3%a4%c3%b6%c3%
bc;jsessionid=E3C9183C8A50CE11A10A62B4F8ADB1DE

returns "äöü;js"

It seems that the length of the return string is calculated without respect
to the count of encoded 2-byte Unicode charachters.

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


Mime
View raw message