cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <>
Subject [jira] [Commented] (CXF-6693) CXF fails to parse Cookie header when it contains $ character
Date Mon, 30 Nov 2015 11:40:10 GMT


Sergey Beryozkin commented on CXF-6693:

OK, I assumed that Cookies that include parameters like "$Version" can only contain single
values, that was before I became aware that cookie values may have ',' separators, ex, "$Version=1;a=2,$Version=1;a=3"
as in:

I vaguely recall this might have been TCK tested too...

Is it what you have in your case ? 

I think if we have "$" then a separator should be "," by default because splitting with ";"
would get wrong pairs and then continue splitting. This can be overridden by setting an "org.apache.cxf.http.cookie.separator".

> CXF fails to parse Cookie header when it contains $ character
> -------------------------------------------------------------
>                 Key: CXF-6693
>                 URL:
>             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

View raw message