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/09/25 22:42:13 UTC
DO NOT REPLY [Bug 15576] -
IllegalArgumentException during adding a cookie
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=15576>.
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=15576
IllegalArgumentException during adding a cookie
------- Additional Comments From harold@uga.edu 2003-09-25 20:42 -------
As of today, running Tomcat 4.0.27, it's still broken. Using the "cookie
servlet" test application in Tomcat, that it fails when either a comma or a
semicolon is put into either the cookie name or cookie value.
According to the sun documentation for the servlet class found at
http://java.sun.com/products/servlet/2.1/api/javax.servlet.http.Cookie.html
the characters comma, semicolon, and white space are not allowed in the name
field. It also recommends that they not be used in the value field, but does
not actually prohibit their use.
Testing also showed that the white space characters are allowed in the name
field, but will create problems when the cookie is later retrieved.
Perhaps this should just be closed as "that's how it works"
Harold