Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-2194

Cookie parsing/assembling does not work 100% correctly.

    XMLWordPrintable

Details

    • Bug
    • Status: Pull Request Sent (View Workflow)
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      Just so stuff does not get lost. Cookie parsing code should be revised and fixed. Keypoints:

      • natural ordering is bad, cookie order should be retained, clients, according to specs SHOULD order by best match first(most likely only for v1?).
      • cookie parsing, especially V1( rfc2109.txt ) depend on cookies being separated, which is incorrect:
        The syntax for the header is:
        4.3.4 Sending Cookies to the Origin Server
        cookie = "Cookie:" cookie-version
        1*((";" | ",") cookie-value)
        cookie-value = NAME "=" VALUE [";" path] [";" domain]
        cookie-version = "$Version" "=" value
        NAME = attr
        VALUE = value
        path = "$Path" "=" value
        domain = "$Domain" "=" value
      • possibly check rfc2109 vs 6265 cookie parsing?

      Attachments

        Issue Links

          Activity

            People

              rhn-cservice-bbaranow Bartosz Baranowski
              rhn-cservice-bbaranow Bartosz Baranowski
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: