Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-2925

Inconsitent NewCookie parsing when unknown attributes is found

XMLWordPrintable

    • Hide

      Suppose the following `Set-Cookie` header:

      Set-Cookie: JSESSIONID=094KDz983;Path=/path;SameSite=none

      Invocation of `NewCookieHeaderDelegate.FromString(...)` with the previous header value sometimes returns a `javax.ws.rs.core.NewCookie` instance whose name is "SameSite" and value "none" which is not the expected behaviour.

      We expect the cookie name to be "JSESSIONID" and value "094KDz983".

      Show
      Suppose the following `Set-Cookie` header: Set-Cookie: JSESSIONID=094KDz983;Path=/path;SameSite=none Invocation of `NewCookieHeaderDelegate.FromString(...)` with the previous header value sometimes returns a `javax.ws.rs.core.NewCookie` instance whose name is "SameSite" and value "none" which is not the expected behaviour. We expect the cookie name to be "JSESSIONID" and value "094KDz983".
    • Undefined

      Parsing of a string into a `javax.ws.rs.core.NewCookie` instance return inconsistent result when the string contains attributes other that the standards ones (path, domain, secure...).

       

              jperkins-rhn James Perkins
              nicones Nicolas NESMON (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: