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

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              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:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: