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 6115] New: - URL encoding of session id doesn't work correctly with anchors/fragments
Date Tue, 29 Jan 2002 23:38:26 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=6115>.
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=6115

URL encoding of session id doesn't work correctly with anchors/fragments

           Summary: URL encoding of session id doesn't work correctly with
                    anchors/fragments
           Product: Tomcat 4
           Version: Nightly Build
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: peter.nuetzel@inglobo.de


If an URI starts with a fragment identifier (e.g. '#anchor')
response.encodeURL() inserts the session id in front of it (result:
';jsessionid=...#anchor').
I think this is not the intended behaviour cause browsers don't interpret such
an URI as internal link of the current document.

org.apache.catalina.connector.HttpResponseBase.isEncodeable() checks if the
passed URI starts with '#' but this fails because encodeURL() passes the
resolved absolute URI to this method.

(PS: with Tomcat 4.0.1 the session id is appended to the anchor which is really
wrong.)

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


Mime
View raw message