Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-897

X-Forwarded-Port is incorrectly determined

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.11.0
    • 0.12.0
    • None
    • None

    Description

      If the client fills out the following headers:

      Header[X-Forwarded-Host]=local.somehost.com
      Header[X-Forwarded-Proto]=https
      

      And does not specify the port number in X-Forwarded-Host since it uses the the default port, then Knox automatically populates X-Forwarded-Port header field with its own local port e.g. 8443 instead of the default 443 which results in page not founds (see screenshot and log).

      Attachments

        1. Screen Shot 2017-03-01 at 14.44.03.png
          98 kB
          Attila Kanto
        2. knox-897.patch
          3 kB
          Attila Kanto
        3. gateway.log
          5 kB
          Attila Kanto

        Activity

          People

            Unassigned Unassigned
            akanto Attila Kanto
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: