[
https://issues.apache.org/jira/browse/WINK-422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13922943#comment-13922943
]
Andy Yang commented on WINK-422:
--------------------------------
In the obsoleted RFC-2109 and RFC-2965, commas were specified as being valid
cookie separators. However, RFC-6265 supercedes both of these and section 4.2.1
specifies only semi-colons.
It seems this would be a trivial fix in
org.apache.wink.server.internal.contexts.HttpheadersImpl.
> Handling JSON Cookies
> ---------------------
>
> Key: WINK-422
> URL: https://issues.apache.org/jira/browse/WINK-422
> Project: Wink
> Issue Type: Improvement
> Components: Server
> Affects Versions: 1.4
> Reporter: Andy Yang
>
> currently HttpHeadersImpl's parseCookieHeader() method does a split("[;,]")
> on the cookie header which doesn't handle case where cookie values are JSON
> which are full of commas.
> Religious convictions aside, JSON cookies are fairly common - would Wink
> consider implementing some way of accessing them, or will it be left up to
> the user to retrieve the raw header and extract the cookies manually?
--
This message was sent by Atlassian JIRA
(v6.2#6252)