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

[jira] [Assigned] (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:all-tabpanel ]

Andrea Del Bene reassigned WICKET-6570:
---------------------------------------

    Assignee: Andrea Del Bene

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