https://issues.apache.org/bugzilla/show_bug.cgi?id=44801

           Summary: getPathInfo() and getRequestURI() handle %3B incorrectly
           Product: Tomcat 6
           Version: 6.0.16
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Servlet & JSP API
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


We have some servlets that take rather general path-info's.  When these include
a properly escaped semicolon, invoking getPathInfo() in Tomcat results in a
truncated path info.

For example, one might have the request 

http://myhost/mywebapp/servlet/myservlet/pathcomp1/pathcomp2/foo%3Bbar?spaz=bot

The expected result of getPathInfo() is

/pathcomp1/pathcomp2/foo%3Bbar

The actual result in Tomcat is:

/pathcomp1/pathcomp2/foo

Note that the %3B is already converted into a ";" character in the results of
getRequestURI(), which is also quite incorrect.

Some comparative testing shows that Sun Java Web Server behaves in the same
incorrect fashion.  In the exception that proves the rule, WebSphere does this
correctly (one of the few things...)


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to