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

processCookieParam only returns last cookie

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.2
    • 2.2.5, 2.3
    • JAX-RS
    • None

    Description

      Problem class: org.apache.cxf.jaxrs.utils.JAXRSUtils

      In JAXRSUtils.processCookieParam(), if there are multiple cookies in the header, only the last cookie will be returned when Cookie.valueOf() is called.

      This is because the list of all cookies is returned from values.get(0). When Cookie.valueOf() is called, it delegates to CookieHeaderProvider which simply loops through all of the tokenized cookie values and returns the last cookie.

      Attachments

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            jonathan.graf Jonathan Graf
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: