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

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

Indeed, the RFC-6265 has the clarifications regarding empty cookie values, both 
in grammar  [1] and interpretation [2]. The only unclear part is how to 
properly map it to Java APIs: usage of *null* is not helpful (since it becomes 
indistinguishable from absent cookie), usage of empty value "" probably makes 
more sense. What do you think [~romain.manni-bucau] ? Meanwhile, I will just 
briefly check what is the take of popular Java libraries in these regards.

[1] [https://tools.ietf.org/html/rfc6265#section-4.1.1]

[2] [https://tools.ietf.org/html/rfc6265#section-5.2]

Thanks!

> 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