Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.14.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.