[ 
https://issues.apache.org/jira/browse/CXF-9087?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dmytro Sylaiev updated CXF-9087:
--------------------------------
    Affects Version/s: 3.5.9

> AbstractClient::cookie method creates incorrect Cookie header
> -------------------------------------------------------------
>
>                 Key: CXF-9087
>                 URL: https://issues.apache.org/jira/browse/CXF-9087
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 3.5.9
>            Reporter: Dmytro Sylaiev
>            Priority: Critical
>
> When executing this code:
> {noformat}
> WebClient webClient = WebClient.create(url);
> webClient.cookie(new javax.ws.rs.core.Cookie("a", "1"));
> webClient.cookie(new javax.ws.rs.core.Cookie("b", "2"));
> webClient.invoke("GET", null);{noformat}
> the WebClient would invoke an HTTP request with the next Cookie header:
> {noformat}
> Cookie: $Version=1;1=2, $Version=1;2=3{noformat}
> which is against the RFC 6265, where multiple cookies should be separated by 
> a semicolon, not a comma, and doesn't include $Version in the Cookie header
>  
> when using Postman, the header on the client request is
> {noformat}
> Cookie: 1=2; 2=3{noformat}
> and seems it is the expected result for AbstractClient as well.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to