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

Andriy Redko commented on CXF-8163:
-----------------------------------

Thanks [~romain.manni-bucau] , so I've checked 3 implementations: Jersey, 
RestEasy and JDK11's HttpClient. All of them have identical behavior, the empty 
cookie is parsed just fine, but it is returned with an empty value. The sample 
header I've been using is "Set-Cookie: a=", all three implementations returned 
empty string as the value of the cookie (the only outlier is CXF, which threw 
an exception at parsing time).

> javax.ws.rs.core.Response#getCookies() fails when cookie has no value
> ---------------------------------------------------------------------
>
>                 Key: CXF-8163
>                 URL: https://issues.apache.org/jira/browse/CXF-8163
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 3.3.4
>            Reporter: Romain Manni-Bucau
>            Assignee: Andriy Redko
>            Priority: Major
>
> It is common for a server to bypass the cookie value to reset the cookie, 
> there the jax-rs client fails to parse it with an exception whereas I think 
> it should ignore the cookie entry.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to