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/07/08 17:39:07 UTC

knox git commit: KNOX-721 Loosening up the match criteria as the Location header coming back from Ranger is not always correct

Repository: knox
Updated Branches:
  refs/heads/master e2a34700d -> f64fb4618


KNOX-721 Loosening up the match criteria as the Location header coming back from Ranger is not always correct


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

Branch: refs/heads/master
Commit: f64fb46186b2a5382af728155cbf0a1d3d7c9adc
Parents: e2a3470
Author: Sumit Gupta <su...@apache.org>
Authored: Fri Jul 8 13:38:03 2016 -0400
Committer: Sumit Gupta <su...@apache.org>
Committed: Fri Jul 8 13:39:02 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/f64fb461/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 d12700a..3ed63cb 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}/login.jsp{**}"/>
-        <rewrite template="{$frontend[url]}/ranger/login.jsp{**}"/>
+        <match pattern="*://*:*/login.jsp"/>
+        <rewrite template="{$frontend[url]}/ranger/login.jsp"/>
     </rule>
 
     <filter name="RANGERUI/rangerui/outbound/links">