Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-5612

colon in cookie's name cause its malfunction

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 2.4
    • None
    • Unknown

    Description

      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?

      Attachments

        Activity

          People

            Unassigned Unassigned
            rrodriguez Ricardo Rodriguez
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: