[
https://issues.apache.org/jira/browse/KNOX-1295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Larry McCay resolved KNOX-1295.
-------------------------------
Resolution: Fixed
I have committed this to master and it will be available in 1.1.0 release.
Thank you, Attila and Marco for this contribution!
We need to write this up as part of service definition authoring and how
leveraging the X-Forwarded headers can make rewrite rules and KnoxSSO redirects
(I believe) easier.
> X-Forwarded-Context contains not the full base path in SHS request
> ------------------------------------------------------------------
>
> Key: KNOX-1295
> URL: https://issues.apache.org/jira/browse/KNOX-1295
> Project: Apache Knox
> Issue Type: Improvement
> Affects Versions: 0.14.0
> Reporter: Marco Gaido
> Assignee: Attila Csoma
> Priority: Major
> Fix For: 1.1.0
>
> Attachments: KNOX-1295.patch
>
>
> 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}}.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)