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

ProxyHandler fails with status 400 in some cases

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.0.0.Beta1, 1.4.4.Final
    • 2.0.0.Beta1, 1.4.3.Final
    • Proxy
    • None

    Description

      For exchanges where the resolved path equals the request URI, and the client connection target path equals “/”, ProxyAction creates an empty request URI.

      That is, the error occurs when the following evaluates to true, within ProxyAction.run():

      exchange.getResolvedPath().equals(exchange.getRequestURI()) && clientConnection.getTargetPath().equals("/")

      A patch with a fix and some tests reproducing this, and at least helped me understand the issue, is attached.

      Attachments

        Issue Links

          Activity

            People

              sdouglas1@redhat.com Stuart Douglas
              cdanielw cdanielw (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: