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 2004/06/09 21:52:06 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://issues.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://issues.apache.org/bugzilla/show_bug.cgi?id=15576

IllegalArgumentException during adding a cookie





------- Additional Comments From path@cisco.com  2004-06-09 19:52 -------
By Experimentation, space are ok in the value (Tomcat 4.1.24). In my case 
accented letters cause the IllegalArgument problem described.

Setting the cookie version to 1 has a behavior that is not documented (well I 
have not found it in the javadoc) for the Cookie object. Values containing 
accented char (ascii 144 decimal) get extra double-quotes around the value.

Value with space or straight up ascii 7 bit chars don't get those double-quotes.

I guess the url encoding is the way to go with all this.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org