Reputation: 1588
So I have seen other questions about this, but none have been able to solve my issue.
I am getting a
org.apache.jasper.JasperException: java.lang.IllegalArgumentException: An invalid character [59] was present in the Cookie value
error. I am using DeviceLookupClient.jar and it adds a cookie somewhere that tomcat is refusing.
So when I run this in weblogic after everything is successful I get this cookie (from network tab):
WurflCloud_Client
value "{\"capabilities\":{\"is_smart…383,\"id\":\"firefox_54_0\"}"
expires "2017-08-17T16:03:03.000Z"
Run the same code in tomcat and it fails before that cookie ever gets created. I believe [59] character is a semicolon and I don't see any in there. If something in that cookie is not allowed then is there a way to allow it, rather than manipulate the library I am using?
Upvotes: 4
Views: 4364
Reputation: 21
It might be solved if you encode the given value like this:
URLEncoder.encode(""{\"capabilities\":{\"is_smart…383,\"id\":\"firefox_54_0\"}"","UTF-8");
Upvotes: 2