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 22413] New: - encodeURL(encodeURL()) fails in ROOT context
Date Thu, 14 Aug 2003 10:36:22 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=22413>.
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=22413

encodeURL(encodeURL()) fails in ROOT context

           Summary: encodeURL(encodeURL()) fails in ROOT context
           Product: Tomcat 4
           Version: 4.1.27
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Servlet & JSP API
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: mguillemot@yahoo.fr


It seems that HttpServletResponse.encodeURL doesn't function correctly in an
application running as ROOT context: it adds the jsessionid a second time even
if alreaday present

With cookies disabled, the following code:

logger_.debug("encode url: " + response.encodeURL("toto.jsp"));
logger_.debug("encode(encode url): " +
response.encodeURL(response.encodeURL("toto.jsp")));

gives:
- if application runs as normal context:
as normal context
encode url: toto.jsp;jsessionid=9BD0236E2D6CF25DF8B9CD038ABBD079
encode(encode url): toto.jsp;jsessionid=9BD0236E2D6CF25DF8B9CD038ABBD079

- if application runs as ROOT context:
encode url: toto.jsp;jsessionid=CFDE76571522565C6E721F149F351202
encode(encode url):
toto.jsp;jsessionid=CFDE76571522565C6E721F149F351202;jsessionid=CFDE76571522565C6E721F149F351202

Mime
View raw message