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

Cookie.getValue() includes double quotes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 2.3.21.Final
    • Servlet
    • None
    • Hide

      Generate a request header with a cookie that has a non RFC6265 character in it then call Cookie.getValue() on the parsed cookie in your Sevlet/JSP

      Show
      Generate a request header with a cookie that has a non RFC6265 character in it then call Cookie.getValue() on the parsed cookie in your Sevlet/JSP
    • User Experience

      When upgrading a from 2.3.20 -> 2.3.21 how the cookie value is returns from the getValue() method has changed.  If the Cookie header's value contains quotes, for instance:

       

      Cookie: autoIdmSession=eyJpdiI6IncyWkVYeFZXTndDUjVxOEFDRGZjZHdcdTAwM2RcdTAwM2QiLCJlbmNyeXB0ZWRSZXF1ZXN0IjoiZWt2RjRjaG5PU3NlRzBYTFI2OWlDTER2ZnpRWFlyUFVncTZWVGdoZE00Tk8ybmJqaFkwREtMb1k2QXk1d3VyTiJ9; autoIdmSessionCookieName=autoIdmSession; autoIdmAppName=AzCheck; tremoloLoginChoice="Username and Password"

       

      the return from getValue() for the cookie tremoloLoginChoice is 

      "Username and Password"

      including the quotes.  in 2.3.30 the value would be 

      Username and Password

      no quotes. Don't think adding the quotes to the return value makes much sense here, since those quotes are for encoding the header.

       

              rhn-cservice-bbaranow Bartosz Baranowski
              mlbiamts Marc Boorshtein
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: