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

Jan Krakora commented on WICKET-6570:
-------------------------------------

OK, thank you for explanation. I will do that.

> Unable to read cookies containing '.' characters in names when using 
> CookieUtils 
> ---------------------------------------------------------------------------------
>
>                 Key: WICKET-6570
>                 URL: https://issues.apache.org/jira/browse/WICKET-6570
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 8.0.0
>            Reporter: Jan Krakora
>            Assignee: Andrea Del Bene
>            Priority: Major
>
> We are using CookieUtils for reading some 3rd party cookies from the request. 
> This cookies however contains '.' characters (in their names) and CookieUtils 
> replaces all '.' with '..' So those cookies are not readable anymore.
> org.apache.wicket.util.cookies.CookieUtils#getSaveKey(String key) :
> {code:java}
> // cookie names cannot contain ':',
> // we replace ':' with '.' but first we have to encode '.' as '..'
> key = Strings.replaceAll(key, ".", "..").toString();
> {code}
> Why is '.' replaced with '..'? Is '.' in a cookie name forbidden character?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to