Hi,
[Ricardo Rodriguez] eBioTIC. wrote:
Hi,
Working in a XE/XEM 2.4 installation and login with a global user in a
virtual wiki, cookies don't remember the status of the panels. When I
use the same account in the controller, it works fine.
For instance, this cookie fails to store/retrieve the state of MREC
panel. Each time I refresh, I get an expanded panel:
xwiki:XWiki.RicardoRodriguezFernandez_Panels.MREC
The same user in the controller works as expected having a cookie named...
XWiki.RicardoRodriguezFernandez_Panels.MREC
And when working without log in, it works as expected as well. In this
case, the cookie is...
XWiki.XWikiGuest_Panels.MREC
Could this something to do with the name of the cookies being set as
"${xcontext.user}_${panel}" when the user is a global one?
Any idea will be welcome! Thanks!
I confirm this behaviour at least working on a XE/XEM 2.4.1 installation
with Firefox 3.6.11 on Mac OS X 10.5.8 as client.
It seems that even though:
RFC2109 section 4.1 states that the the cookie name (attr) is of type
"token".
RFC2068 section 2.2 defines type "token" as any chars excluding control
characters and special characters, and...
RFC2068 lists special characters as tspecials =
"(" | ")" | "<" |
">" | "@"
| "," | ";" | ":" | "\" |
<">
| "/" | "[" | "]" | "?" |
"="
| "{" | "}" | SP | HT
(see
http://bugs.python.org/issue2193)
... it is common to find colon in cookies' name. Colon causes cookies
malfunctioning at least here.
I've solved this issue by changing the name of the cookies to...
#set($cookieName =
"${context.user.replaceAll(':','')}_${panel}")
Could anybody confirm this?
It was firstly reporte here
http://jira.xwiki.org/jira/browse/EPE-19.
I've created this Jira Issue
http://jira.xwiki.org/jira/browse/XWIKI-5612. Thanks!
Cheers,
Ricardo
--
Ricardo RodrÃguez
CTO
eBioTIC.
Life Sciences, Data Modeling and Information Management Systems