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

HeaderValues size bigger than value totals

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.1.Beta4
    • 1.1.Beta3
    • Core, Proxy
    • None

      In Reverse Proxy functionality, The HeaderValues aren't parsed correctly. The size is bigger than the list of items in my case.

      The original request contains 15 Set-Cookie headers, 5 of which are duplicate headers.
      The HeaderValues contains size: 15, but the values are a list of 10 Strings.
      When the HttpResponseConduit copies the headers to the output, the HttpResponseConduit.processWrite method gives a NullPointerException on line 190.

      Since duplicate headers aren't used, the removal of these headers is probably not a bad idea. But since the HTTP protocol supports these headers, the Reverse Proxy should also be capable of handling them correctly.

              sdouglas1@redhat.com Stuart Douglas (Inactive)
              mwienk Mark Wienk (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: