Simple JSP that reproduces the issue If you set a cookie in a JSP that has an '=' character in the value, reading that cookie in subsequent loads truncates at the apostrophe. Reading the cookie fails even if the cookie was set client side or was pre-existing. I've attached a very simple testcase.jsp page
Such a cookie is not specification compliant. Please read the archives or ask on the users list if you need further assistance.
(In reply to comment #1) > Such a cookie is not specification compliant. Please read the archives or ask > on the users list if you need further assistance. But this used to work on tomcat-6.0.16. The problem is that we encode a base64 value into a cookie and it does contain such characters. It is critical for our application.
Not using Base64 character is not an option for us. Is there a work around for this problem?
(In reply to comment #3) > Not using Base64 character is not an option for us. Is there a work around for > this problem? To repeat what the man said: "Please read the archives or ask on the users list if you need further assistance." Bugzilla is not an appropriate forum for discussing application and configuration issues. - Chuck
(In reply to comment #4) > (In reply to comment #3) > > Not using Base64 character is not an option for us. Is there a work around for > > this problem? > > To repeat what the man said: > > "Please read the archives or ask on the users list if you need further > assistance." > > Bugzilla is not an appropriate forum for discussing application and > configuration issues. > > - Chuck Thank you Chuck. You are very kind and helpful :)
1. You should search first, before submitting an issue. See bug 44679 2. testcase.jsp is not attached 3. There is a configuration option to allow equal signs in a cookie value, since 6.0.24, see http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html *** This bug has been marked as a duplicate of bug 44679 ***
(In reply to comment #6) > 1. You should search first, before submitting an issue. See bug 44679 > 2. testcase.jsp is not attached > 3. There is a configuration option to allow equal signs in a cookie value, > since 6.0.24, see > http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html > > *** This bug has been marked as a duplicate of bug 44679 *** Thanks Konstantin! The org.apache.catalina.STRICT_SERVLET_COMPLIANCE=true solved my problem.