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

X-Forwarded-Context contains not the full base path in SHS request

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.14.0
    • 1.1.0
    • None
    • None

    Description

      Knox can send the base path which may be useful for the proxied application in order to determine the proxy base URL and build the URLs accordingly. This may be useful in Spark History Server which may use this to determine the proxy base URL, instead of relying on an internal config (which prevents SHS to be consumed through direct URL anymore).

      The problem is that Knox currently in the X-Forwarded-Context doesn't send the full base path, but only the first part of it, eg. it sends X-Forwarded-Context: gateway/default instead of X-Forwarded-Context: gateway/default/sparkhistoryui.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            csomaati Attila Csoma
            mgaido Marco Gaido
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment