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

IPAddressAccessControlHandler stops working when ProxyPeerAddressHandler is active

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.0.2.Final, 1.4.24.Final
    • 1.4.22.Final
    • Core
    • None

      ProxyPeerAddressHandler:62 sets the source address to an InetSocketAddress for which `getAddress()` returns `null`. The resolved IP is only set as hostname in the InetSocketAddress.
      The IPAddressAccessControlHandler then consumes the source address on line 102 and uses the address retrieved via `getAddress()` for ACL matching. Since `getAddress()` returns null now, the request is rejected.
      This applies to every request with an X-Forwarded-For header.

      So the two handlers are clearly incompatible at the moment but I am unsure of where to fix this incompatibility.

            sdouglas1@redhat.com Stuart Douglas
            moritz.becker@gmx.at Moritz Becker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: