Cookie values are quoted or escaped on EAP 7

Solution Verified - Updated -

Issue

  • We set a cookie on the response with a value that includes double quotes or special characters. The whole value returned from the server is enclosed in quotes and the expected quotes in the value are escaped. How can we prevent these cookie value changes?
  • Error log "UT000173: An invalid control character [xxx] was present in the cookie value or attribute" is recorded. Why am I getting it?

Environment

  • JBoss Enterprise Application Platform (EAP) 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content