You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@knox.apache.org by mo...@apache.org on 2018/03/22 18:22:22 UTC

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

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 <mo...@apache.org>
Authored: Thu Mar 22 14:21:59 2018 -0400
Committer: Sandeep More <mo...@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">