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

Cookie parsing/assembling does not work 100% correctly.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • None
    • None

      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?

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

                Created:
                Updated: