tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Schroer" <peter.schr...@blueits.com>
Subject Rfc6265 cookies starting with a dot
Date Tue, 14 Apr 2015 12:53:09 GMT
Hello,

I'm using tomcat 8.0.21 with the new Rfc6265 cookie processor. If there are
cookies starting with a dot I'm getting the following error:

java.lang.IllegalArgumentException: An invalid domain [.db-app.de] was
specified for this cookie

org.apache.tomcat.util.http.Rfc6265CookieProcessor.validateDomain(Rfc6265Coo
kieProcessor.java:180)

org.apache.tomcat.util.http.Rfc6265CookieProcessor.generateHeader(Rfc6265Coo
kieProcessor.java:122)

org.apache.catalina.connector.Response.generateCookieString(Response.java:95
9)

org.apache.catalina.connector.Response.addCookie(Response.java:907)

org.apache.catalina.connector.ResponseFacade.addCookie(ResponseFacade.java:3
92)

org.esigate.servlet.impl.ResponseSender.sendResponse(ResponseSender.java:70)

com.bahn.esiExtensions.ExtendedProxyServlet.doFilter(ExtendedProxyServlet.ja
va:104)


Is there a way to stop tomcat from throwing this error? Using the old cookie
processor is not an option because the old processor isn't able to handle
cookies containing umlauts.

Thanks in advance
Peter 

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message