Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6729

Version 1 NewCookie is not compliant with RFC 2109

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.7, 3.1.4
    • 3.0.10, 3.1.7
    • JAX-RS
    • None
    • Windows

    • Unknown

    Description

      Hi,

      From http://www.ietf.org/rfc/rfc2109.txt and http://stackoverflow.com/questions/572482/why-do-cookie-values-with-whitespace-arrive-at-the-client-side-with-quotes
      the version 1 cookie look like: name="value with spaces";Max-Age=3600;Path="/";Version=1

      NewCookieHeaderProvider.toString(NewCookie) has not handled the special characters(RFC2068) that need around with quotes

      Attachments

        1. NewCookieHeaderProvider.java
          10 kB
          Neal Hu
        2. NewCookieHeaderProvider.patch
          4 kB
          Neal Hu
        3. NewCookieHeaderProviderTest.java
          5 kB
          Neal Hu
        4. NewCookieHeaderProviderTest.patch
          2 kB
          Neal Hu
        5. ResponseImplTest.java
          18 kB
          Neal Hu

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            nbqyqx@163.com Neal Hu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: