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 19455] New: - session tracking with 'jsessionid' fails when query string parameters present
Date Wed, 30 Apr 2003 00:59:39 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=19455>.
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=19455

session tracking with 'jsessionid' fails when query string parameters present

           Summary: session tracking with 'jsessionid' fails when query
                    string parameters present
           Product: Tomcat 5
           Version: Nightly Build
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: pierre.delisle@sun.com


If you try the JSP page included below, (call it test.jsp)
with cookies disabled in your browser, 
you'll get the following links (modulo the context path):

/standard-examples/test.jsp?foo=bar
/standard-examples/test.jsp;jsessionid=2E90D2BBD0180E2D92A9F2EC87E736D9?foo=bar

The first one works fine, the second one gets you to tomcat's default page.
(tested with the nightly of 4-28-2003)
The bug does not exist with tomcat-4.1.24.

---- test.jsp ------
<%
   String context = request.getContextPath();
   String url1 = context + "/test.jsp?foo=bar";
   String url2 = response.encodeURL(url1);
%>

<a href='<%=url1%>'><%=url1%><br>
<a href='<%=url2%>'><%=url2%><br>

---------------------------------------------------------------------
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