cxf-issues mailing list archives

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

    [ https://issues.apache.org/jira/browse/CXF-6693?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15031682#comment-15031682
] 

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:

https://github.com/spray/spray/issues/869

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: 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)

Mime
View raw message