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: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] 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 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]