Repository: knox
Updated Branches:
  refs/heads/master 38e6eb885 -> 44e2bfc8a


KNOX-1556 - Apache Ambari Favicon and link to NOTICE.txt does not work when 
using Knox Gateway

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

Branch: refs/heads/master
Commit: 44e2bfc8a385959e944cb946b25b183083501a14
Parents: 38e6eb8
Author: Larry McCay <[email protected]>
Authored: Wed Nov 7 10:59:19 2018 -0500
Committer: Larry McCay <[email protected]>
Committed: Wed Nov 7 10:59:19 2018 -0500

----------------------------------------------------------------------
 .../src/main/resources/services/ambariui/2.2.0/rewrite.xml   | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/44e2bfc8/gateway-service-definitions/src/main/resources/services/ambariui/2.2.0/rewrite.xml
----------------------------------------------------------------------
diff --git 
a/gateway-service-definitions/src/main/resources/services/ambariui/2.2.0/rewrite.xml
 
b/gateway-service-definitions/src/main/resources/services/ambariui/2.2.0/rewrite.xml
index 59cfd76..52792ee 100644
--- 
a/gateway-service-definitions/src/main/resources/services/ambariui/2.2.0/rewrite.xml
+++ 
b/gateway-service-definitions/src/main/resources/services/ambariui/2.2.0/rewrite.xml
@@ -53,6 +53,12 @@
     <rule dir="OUT" name="AMBARIUI/ambari/outbound/appjs">
         <rewrite template="{$frontend[path]}/ambari/javascripts/app.js"/>
     </rule>
+    <rule dir="OUT" name="AMBARIUI/ambari/outbound/favicon">
+        <rewrite template="{$frontend[path]}/ambari/img/logo.png"/>
+    </rule>
+     <rule dir="OUT" name="AMBARIUI/ambari/outbound/notice">
+        <rewrite template="{$frontend[path]}/ambari/licenses/NOTICE.txt"/>
+    </rule>
 
     <!-- WS support -->
     <rule dir="OUT" name="AMBARIUI/ambari/outbound/websocket">
@@ -120,6 +126,8 @@
             <apply path="stylesheets/app.css" 
rule="AMBARIUI/ambari/outbound/appcss" />
             <apply path="javascripts/vendor.js" 
rule="AMBARIUI/ambari/outbound/vendorjs" />
             <apply path="javascripts/app.js" 
rule="AMBARIUI/ambari/outbound/appjs" />
+            <apply path="/img/logo.png" 
rule="AMBARIUI/ambari/outbound/favicon"/>
+            <apply path="/licenses/NOTICE.txt" 
rule="AMBARIUI/ambari/outbound/notice"/>
         </content>
     </filter>
 </rules>

Reply via email to