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

secure-cookie() handler doesn't pick up directly-added set-cookie headers

XMLWordPrintable

      I've been testing the secure-cookie() handler and it doesn't work for an app server I use which doesn't set cookies via exchange.setResponseCookie() or servletResponse.addCookie() but instead sets a manually-created "set-cookie" header via servletResponse.addHeader().  This is because the 
      SecureCookieCommitListener doesn't "see" the headers when it calls exchange.responseCookies().  
       
      I suggest an enhancement to the SecureCookieCommitListener to also look through the response headers for any "set-cookie" headers and modify them as well.  Note, this will likely require parsing the header value.

              mjusko@redhat.com Marek Jusko
              bdw429s Brad Wood (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: