You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/08/14 12:36:22 UTC
DO NOT REPLY [Bug 22413] New: -
encodeURL(encodeURL()) fails in ROOT context
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