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

Mismatching Host and Port being returned from HttpServletRequestImpl methods when Proxy present

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.0.0.Beta31
    • 1.0.0.Beta17
    • Core, Servlet
    • None

    Description

      HttpRequest.getServerName() and HttpRequest.getServerPort() return mismatching information when a Proxy is present.

      HttpRequest.getServerName() will return the Proxy host, as the HttpServerExchange checks the request headers before the destination address.

      HttpRequest.getServerPort() will return the server port, as it gets the port from the destination address at all times.

      Attachments

        Activity

          People

            kfinniga@redhat.com Ken Finnigan (Inactive)
            kfinniga@redhat.com Ken Finnigan (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: