Repository: knox
Updated Branches:
  refs/heads/master f8219575b -> 89bf09f97


KNOX-1360 - Fix ambari broken images (Aleksandr Kovalenko 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/89bf09f9
Tree: http://git-wip-us.apache.org/repos/asf/knox/tree/89bf09f9
Diff: http://git-wip-us.apache.org/repos/asf/knox/diff/89bf09f9

Branch: refs/heads/master
Commit: 89bf09f9706f49de5f076ecb9f586efeb6139ca1
Parents: f821957
Author: Sandeep More <[email protected]>
Authored: Thu Jun 21 13:52:46 2018 -0400
Committer: Sandeep More <[email protected]>
Committed: Thu Jun 21 13:52:46 2018 -0400

----------------------------------------------------------------------
 .../services/ambariui/2.2.0/rewrite.xml         | 21 +++++---------------
 1 file changed, 5 insertions(+), 16 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/89bf09f9/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 9955916..9b15223 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
@@ -33,18 +33,13 @@
         <rewrite template="{$frontend[path]}/ambari/api/v1"/>
     </rule>
 
-    <rule dir="OUT" name="AMBARIUI/ambari/outbound/whitelogo">
-        <rewrite template="{$frontend[path]}/ambari/img/logo-white.png"/>
+    <rule dir="OUT" name="AMBARIUI/ambari/outbound/img">
+        <rewrite template="{$frontend[path]}/ambari/img/"/>
     </rule>
+
     <rule dir="OUT" name="AMBARIUI/ambari/outbound/logohref">
         <rewrite template="#/main/dashboard"/>
     </rule>
-    <rule dir="OUT" name="AMBARIUI/ambari/outbound/ambariview">
-        <rewrite 
template="{$frontend[path]}/ambari/img/ambari-view-default.png"/>
-    </rule>
-    <rule dir="OUT" name="AMBARIUI/ambari/outbound/img" pattern="/img/{**}">
-        <rewrite template="{$frontend[url]}/ambari/img/{**}"/>
-    </rule>
 
     <rule dir="OUT" name="AMBARIUI/ambari/outbound/vendorcss">
         <rewrite template="{$frontend[path]}/ambari/stylesheets/vendor.css"/>
@@ -97,21 +92,15 @@
     <filter name="AMBARIUI/ambari/outbound/links">
         <content type="*/x-javascript">
             <apply path="/api/v1" rule="AMBARIUI/ambari/outbound/extrapath"/>
+            <apply path="/img/" rule="AMBARIUI/ambari/outbound/img"/>
             <apply path="\{proxy_root\}" 
rule="AMBARIUI/ambari/outbound/sitepath"/>
-            <apply path="/img/logo-white.png" 
rule="AMBARIUI/ambari/outbound/whitelogo"/>
-            <apply path="/img/ambari-logo.png" 
rule="AMBARIUI/ambari/outbound/img"/>
-            <apply path="/img/logo.png" rule="AMBARIUI/ambari/outbound/img"/>
             <apply path="/#/main/dashboard" 
rule="AMBARIUI/ambari/outbound/logohref"/>
-            <apply path="/img/ambari-view-default.png" 
rule="AMBARIUI/ambari/outbound/ambariview"/>
         </content>
         <content type="application/javascript">
             <apply path="/api/v1" rule="AMBARIUI/ambari/outbound/extrapath"/>
+            <apply path="/img/" rule="AMBARIUI/ambari/outbound/img"/>
             <apply path="\{proxy_root\}" 
rule="AMBARIUI/ambari/outbound/sitepath"/>
-            <apply path="/img/logo-white.png" 
rule="AMBARIUI/ambari/outbound/whitelogo"/>
-            <apply path="/img/ambari-logo.png" 
rule="AMBARIUI/ambari/outbound/img"/>
-            <apply path="/img/logo.png" rule="AMBARIUI/ambari/outbound/img"/>
             <apply path="/#/main/dashboard" 
rule="AMBARIUI/ambari/outbound/logohref"/>
-            <apply path="/img/ambari-view-default.png" 
rule="AMBARIUI/ambari/outbound/ambariview"/>
         </content>
         <content type="*/html">
         </content>

Reply via email to