[
https://issues.apache.org/jira/browse/WICKET-6570?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sven Meier resolved WICKET-6570.
--------------------------------
Resolution: Fixed
Assignee: Sven Meier (was: Andrea Del Bene)
Fix Version/s: 9.0.0
Cookie name is escaped only when loaded or saved for a component.
> 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: Sven Meier
> Priority: Major
> Fix For: 9.0.0
>
>
> 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)