You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@knox.apache.org by su...@apache.org on 2016/06/09 15:56:00 UTC

knox git commit: KNOX-717 changed the location header rewrite to be more specific

Repository: knox
Updated Branches:
  refs/heads/master d88194a26 -> a227981fa


KNOX-717 changed the location header rewrite to be more specific


Project: http://git-wip-us.apache.org/repos/asf/knox/repo
Commit: http://git-wip-us.apache.org/repos/asf/knox/commit/a227981f
Tree: http://git-wip-us.apache.org/repos/asf/knox/tree/a227981f
Diff: http://git-wip-us.apache.org/repos/asf/knox/diff/a227981f

Branch: refs/heads/master
Commit: a227981fa4287adcb431fa4e17c378117b8ef934
Parents: d88194a
Author: Sumit Gupta <su...@apache.org>
Authored: Thu Jun 9 11:55:19 2016 -0400
Committer: Sumit Gupta <su...@apache.org>
Committed: Thu Jun 9 11:55:19 2016 -0400

----------------------------------------------------------------------
 .../src/main/resources/services/rangerui/0.5.0/rewrite.xml       | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/a227981f/gateway-service-definitions/src/main/resources/services/rangerui/0.5.0/rewrite.xml
----------------------------------------------------------------------
diff --git a/gateway-service-definitions/src/main/resources/services/rangerui/0.5.0/rewrite.xml b/gateway-service-definitions/src/main/resources/services/rangerui/0.5.0/rewrite.xml
index 2ed3312..d12700a 100644
--- a/gateway-service-definitions/src/main/resources/services/rangerui/0.5.0/rewrite.xml
+++ b/gateway-service-definitions/src/main/resources/services/rangerui/0.5.0/rewrite.xml
@@ -30,8 +30,8 @@
     </rule>
 
     <rule dir="OUT" name="RANGERUI/rangerui/outbound/login/headers/location">
-        <match pattern="{scheme}://{host}:{port}/{**}"/>
-        <rewrite template="{$frontend[url]}/ranger/{**}"/>
+        <match pattern="{scheme}://{host}:{port}/login.jsp{**}"/>
+        <rewrite template="{$frontend[url]}/ranger/login.jsp{**}"/>
     </rule>
 
     <filter name="RANGERUI/rangerui/outbound/links">