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-1330 - Fix favicon for Zeppelin (Prabhjyot Singh via Sandeep More)
Date Wed, 23 May 2018 20:49:40 GMT
Repository: knox
Updated Branches:
  refs/heads/master 335e87337 -> a1e1b207b


KNOX-1330 - Fix favicon for Zeppelin (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/a1e1b207
Tree: http://git-wip-us.apache.org/repos/asf/knox/tree/a1e1b207
Diff: http://git-wip-us.apache.org/repos/asf/knox/diff/a1e1b207

Branch: refs/heads/master
Commit: a1e1b207b8eff5d38234df7931cb919082ec1f4a
Parents: 335e873
Author: Sandeep More <more@apache.org>
Authored: Wed May 23 16:49:29 2018 -0400
Committer: Sandeep More <more@apache.org>
Committed: Wed May 23 16:49:29 2018 -0400

----------------------------------------------------------------------
 .../src/main/resources/services/zeppelinui/0.6.0/rewrite.xml     | 4 ++++
 .../src/main/resources/services/zeppelinui/0.6.0/service.xml     | 4 ++++
 2 files changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/a1e1b207/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 13d61e9..275bfe8 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
@@ -16,6 +16,10 @@
    limitations under the License.
 -->
 <rules>
+  <rule dir="IN" name="ZEPPELINUI/zeppelin/inbound/favicon" pattern="*://*:*/**/zeppelin/favicon.ico">
+    <rewrite template="{$serviceUrl[ZEPPELINUI]}/favicon.ico"/>
+  </rule>
+
   <rule dir="IN" name="ZEPPELINUI/zeppelin/inbound/root" pattern="*://*:*/**/zeppelin/">
     <rewrite template="{$serviceUrl[ZEPPELINUI]}/"/>
   </rule>

http://git-wip-us.apache.org/repos/asf/knox/blob/a1e1b207/gateway-service-definitions/src/main/resources/services/zeppelinui/0.6.0/service.xml
----------------------------------------------------------------------
diff --git a/gateway-service-definitions/src/main/resources/services/zeppelinui/0.6.0/service.xml
b/gateway-service-definitions/src/main/resources/services/zeppelinui/0.6.0/service.xml
index fcf5cad..0b29f97 100644
--- a/gateway-service-definitions/src/main/resources/services/zeppelinui/0.6.0/service.xml
+++ b/gateway-service-definitions/src/main/resources/services/zeppelinui/0.6.0/service.xml
@@ -28,6 +28,10 @@
       <rewrite apply="ZEPPELINUI/zeppelin/outbound/javascript/filter" to="response.body"/>
     </route>
 
+    <route path="/zeppelin/favicon.ico">
+      <rewrite apply="ZEPPELINUI/zeppelin/inbound/favicon" to="request.url"/>
+    </route>
+
     <route path="/zeppelin/">
       <rewrite apply="ZEPPELINUI/zeppelin/inbound/root" to="request.url"/>
     </route>


Mime
View raw message