Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1
    • Fix Version/s: ice box
    • Component/s: None
    • Labels:
      None

      Description

      Cookie and NewCookie are designed to support RFC 2109, which nobody ever implemented (OK, Opera supported it, but they probably no longer do now that they switched to Chromium), and worse, it breaks in recent Google Chrome.

      The de-facto Web standard (aka Netscape spec or version 0) has been finally documented and standardized as RFC 6265, and I think it's time to update everyone to it: http://tools.ietf.org/html/rfc6265

      Notable differences:

      • no Comment or Version
      • space required between semi-colon and attribute name
      • many attribute values are not quoted (e.g. Path)

      I haven't dug to find what breaks Chrome, but it's either the Version (tried setting it to 0, to no avail), the lack of spaces, or the quotes in the Path. I wrote my own HeaderDelegate using the RFC 6265 syntax, that I injected into Resteasy to replace the default one using RFC 2109 and it now works like a charm.

      What I'm thus proposing is:

      • @Deprecate the comment and version properties
      • use the RFC 6265 syntax. I'd go as far as ignoring version and comment, but you might want to keep using RFC 2109 when version is set to 1 (should it still be the default?) and only switch to RFC 6265 otherwise.

        Activity

        Hide
        t.broyer added a comment -

        Somewhat related: JERSEY-317

        Show
        t.broyer added a comment - Somewhat related: JERSEY-317

          People

          • Assignee:
            Unassigned
            Reporter:
            t.broyer
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: