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

[RH-SSO] (7.1) X-Forwarded-Host without port results in ':80' added to URL

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 7.1.0.DR13
    • 7.0.3.GA, 7.0.4.GA, 7.1.0.GA
    • Undertow
    • None

      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
              sthorger@redhat.com Stian Thorgersen
              Jan Stourac Jan Stourac
              Jan Stourac Jan Stourac
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: