[ https://issues.apache.org/jira/browse/CXF-6693?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15031645#comment-15031645 ]
Sergey Beryozkin commented on CXF-6693: --------------------------------------- OK, lets deal with $ first, I guess someone might do {noformat} a=b";"d {noformat} but that seems somewhat unrealistic to me because it involves the manual formatting, I don't mind that being supported in CXF, but may be we can deal with that in a sep JIRA issue :-), so I've updated the test and seeing: {code:java} @Test public void testFromComplexString() { Cookie c = Cookie.valueOf("$Version=2;foo$=bar$;$Path=path;$Domain=domain"); assertTrue("bar$".equals(c.getValue()) && "foo$".equals(c.getName()) && 2 == c.getVersion() && "path".equals(c.getPath()) && "domain".equals(c.getDomain())); } {code} passing, what am I missing ? > CXF fails to parse Cookie header when it contains $ character > ------------------------------------------------------------- > > Key: CXF-6693 > URL: https://issues.apache.org/jira/browse/CXF-6693 > Project: CXF > Issue Type: Bug > Components: JAX-RS > Affects Versions: 3.1.4 > Reporter: Thorsten Hoeger > Assignee: Sergey Beryozkin > Priority: Critical > > If the Cookie header contains $ character the method getCookies in > org.apache.cxf.jaxrs.impl.HttpHeadersImpl in line 113 fails to parse the > individual cookies and returns the complete string as one cookie. Values with > ; character will possibly fail to in the current implementation. -- This message was sent by Atlassian JIRA (v6.3.4#6332)