Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-8087

[RH-SSO] (7.0.z) UNDERTOW-847 - X-Forwarded-Host without port results in ':80' added to URL

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 7.0.5.CR2, 7.0.5.GA
    • 7.0.3.GA, 7.0.4.GA
    • Undertow
    • None
    • EAP 7.0.5

      With 'proxy-address-forwarding="true"' X-Forwarded-* headers are used by Undertow to show the correct URLs. There was some changes done in https://issues.jboss.org/browse/UNDERTOW-756 which results in ':80' being added to the port when X-Forwarded-Host doesn't include a port. This results in the request URL being 'http://hostname:80' and worse 'https://hostname:80'.

      Looking at the comments in https://issues.jboss.org/browse/UNDERTOW-756 there was a fix for this added in https://github.com/undertow-io/undertow/pull/430, but it looks like this commit didn't make it into EAP 7.0.3.

              rhn-engineering-lgao Lin Gao
              rhn-engineering-lgao Lin Gao
              Peter Mackay Peter Mackay
              Peter Mackay Peter Mackay
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: