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

X-Forwarded-Port is incorrectly determined

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.11.0
    • Fix Version/s: 0.12.0
    • Component/s: None
    • Labels:
      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. gateway.log
          5 kB
          Attila Kanto
        2. knox-897.patch
          3 kB
          Attila Kanto
        3. Screen Shot 2017-03-01 at 14.44.03.png
          98 kB
          Attila Kanto

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: