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

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

Jan Krakora created WICKET-6570:
-----------------------------------

             Summary: 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


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)