You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Florian (JIRA)" <ji...@apache.org> on 2018/07/24 16:10:00 UTC

[jira] [Commented] (WICKET-6570) Unable to read cookies containing '.' characters in names when using CookieUtils

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

Florian commented on WICKET-6570:
---------------------------------

FWIW, it's related to issue -WICKET-1834-.

> 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
>            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)