knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject knox git commit: KNOX-1223 - Fix redirect rules for Zeppelin /api/ticket (Prabhjyot Singh via Sandeep More)
Date Thu, 22 Mar 2018 18:22:22 GMT
Repository: knox
Updated Branches:
  refs/heads/master 7446fbc43 -> 591e0bd3c


KNOX-1223 - Fix redirect rules for Zeppelin /api/ticket (Prabhjyot Singh  via Sandeep More)


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

Branch: refs/heads/master
Commit: 591e0bd3c09fd7fe937920fbf5ec1c5bd36a386f
Parents: 7446fbc
Author: Sandeep More <more@apache.org>
Authored: Thu Mar 22 14:21:59 2018 -0400
Committer: Sandeep More <more@apache.org>
Committed: Thu Mar 22 14:21:59 2018 -0400

----------------------------------------------------------------------
 .../main/resources/services/zeppelinui/0.6.0/rewrite.xml    | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/591e0bd3/gateway-service-definitions/src/main/resources/services/zeppelinui/0.6.0/rewrite.xml
----------------------------------------------------------------------
diff --git a/gateway-service-definitions/src/main/resources/services/zeppelinui/0.6.0/rewrite.xml
b/gateway-service-definitions/src/main/resources/services/zeppelinui/0.6.0/rewrite.xml
index db251ad..13d61e9 100644
--- a/gateway-service-definitions/src/main/resources/services/zeppelinui/0.6.0/rewrite.xml
+++ b/gateway-service-definitions/src/main/resources/services/zeppelinui/0.6.0/rewrite.xml
@@ -166,6 +166,15 @@
   <rule dir="OUT" name="ZEPPELINUI/zeppelin/outbound/javascript/filter/app/searchTerm"
>
     <rewrite template="{$frontend[path]}/zeppelin/app/search/result-list.html"/>
   </rule>
+
+  <!-- Rewrite the outgoing content for /api/ticket -->
+  <rule dir="OUT" name="ZEPPELINUI/zeppelin/outbound/api/login" pattern="*://*:*/api/login">
+    <rewrite template="{$frontend[path]}/zeppelin/api/login"/>
+  </rule>
+
+  <rule dir="OUT" name="ZEPPELINUI/zeppelin/outbound/api" pattern="*://*:*/api/{**}">
+    <rewrite template="{$frontend[path]}/zeppelin/api/{**}"/>
+  </rule>
   
   <filter name="ZEPPELINUI/zeppelin/outbound/javascript/filter">
           <content type="application/javascript">


Mime
View raw message