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

ProxyHandler fails with status 400 in some cases

XMLWordPrintable

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

      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.

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

                Created:
                Updated:
                Resolved: