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 2002/02/11 22:16:10 UTC

DO NOT REPLY [Bug 6377] New: - Problem with addCookie

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=6377>.
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=6377

Problem with addCookie

           Summary: Problem with addCookie
           Product: Tomcat 4
           Version: 4.0.1 Final
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: dbixler@e-centives.com


It appears that there's a problem with the addCookie method.  I examined the 
source code and found that in CookieTools.java (in the getCookieHeaderValue 
method), the cookie name and value are URLEncoded.  This seems to cause 
serious problems when other applications try to read the cookies because the 
values are not what was written.  Cookie values should not be URLEncoded (and 
neither should the names).  The original JServ did not do this.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>