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=39278>.
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=39278

           Summary: getRequestURI returns decoded URI contrary to spec
           Product: Tomcat 5
           Version: 5.5.9
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Servlet & JSP API
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


The documentation states that the string returned by getRequestURI() is not
decoded by the container. However in Tomcat 5.5.9 it returns a partially decoded
URI, i.e, %xx is decoded but '+'=>' ' is not. IIRC this used to work in Tomcat
4. I'm expecting an encoded URI and when I decode the partially decoded one of
course I mangle any real '+' characters.

getRequestURL seems to return the unmangled string so I have a workaround but
this behavior is inconsistent with the documentation and at least the Servlet
2.3 spec.

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

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

Reply via email to