java - Tomcat 7 exception when cookie contain umlaut characters -
i'm developer , face exception below when cookie contain umlaut characters (ä,ö,ü), tried many solutions , configurations without result.
i use tomcat7
any solution please
feb 21, 2013 6:29:16 org.apache.coyote.http11.abstracthttp11processor process severe: error processing request java.lang.illegalargumentexception: control character in cookie value or attribute. @ org.apache.tomcat.util.http.cookiesupport.ishttpseparator(cookiesupport.java:193) @ org.apache.tomcat.util.http.cookies.gettokenendposition(cookies.java:488) @ org.apache.tomcat.util.http.cookies.processcookieheader(cookies.java:291) @ org.apache.tomcat.util.http.cookies.processcookies(cookies.java:168) @ org.apache.tomcat.util.http.cookies.getcookiecount(cookies.java:106) @ org.apache.catalina.connector.coyoteadapter.parsesessioncookiesid(coyoteadapter.java:919) @ org.apache.catalina.connector.coyoteadapter.postparserequest(coyoteadapter.java:688) @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:402) @ org.apache.coyote.http11.abstracthttp11processor.process(abstracthttp11processor.java:987) @ org.apache.coyote.abstractprotocol$abstractconnectionhandler.process(abstractprotocol.java:579) @ org.apache.tomcat.util.net.nioendpoint$socketprocessor.run(nioendpoint.java:1600) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1110) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:603) @ java.lang.thread.run(thread.java:722)
according comment on question need upgrade tomcat 8.0.15 (or higher) , enable rfc 6455 cookie processor. documented here: http://tomcat.apache.org/tomcat-8.0-doc/config/cookie-processor.html
enable in conf/context.xml via:
<context> <cookieprocessor classname="org.apache.tomcat.util.http.rfc6265cookieprocessor" /> </context>
Comments
Post a Comment