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-1242 - Fix rewrite rules for HDFS UI - Datanode UI link
Date Fri, 06 Apr 2018 16:48:09 GMT
Repository: knox
Updated Branches:
  refs/heads/master 84aa9565f -> 33d530c56


KNOX-1242 - Fix rewrite rules for HDFS UI - Datanode UI link


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

Branch: refs/heads/master
Commit: 33d530c5623dd0c4cb3a977d9aaea02744deefce
Parents: 84aa956
Author: Sandeep More <more@apache.org>
Authored: Fri Apr 6 12:48:02 2018 -0400
Committer: Sandeep More <more@apache.org>
Committed: Fri Apr 6 12:48:02 2018 -0400

----------------------------------------------------------------------
 .../main/resources/services/hdfsui/2.7.0/rewrite.xml   | 13 +++++++++++++
 1 file changed, 13 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/33d530c5/gateway-service-definitions/src/main/resources/services/hdfsui/2.7.0/rewrite.xml
----------------------------------------------------------------------
diff --git a/gateway-service-definitions/src/main/resources/services/hdfsui/2.7.0/rewrite.xml
b/gateway-service-definitions/src/main/resources/services/hdfsui/2.7.0/rewrite.xml
index 8b946fa..0f5490c 100644
--- a/gateway-service-definitions/src/main/resources/services/hdfsui/2.7.0/rewrite.xml
+++ b/gateway-service-definitions/src/main/resources/services/hdfsui/2.7.0/rewrite.xml
@@ -79,6 +79,16 @@
       <rewrite template="/gateway/default/datanode/?host=http://{dnWebAddress}"/>
   </rule>
 
+  <!-- rules for to fix angular infoAddr variable KNOX-1242 -->
+  <rule dir="OUT" name="HDFSUI/hdfs/outbound/datanode/infoAddr">
+    <match pattern="{infoAddr}"/>
+    <rewrite template="{$prefix[',url]}/datanode/?host=http://{infoAddr}'"/>
+  </rule>
+  <rule dir="OUT" name="HDFSUI/hdfs/outbound/datanode/infoSecureAddr">
+    <match pattern="{infoSecureAddr}"/>
+    <rewrite template="{$prefix[',url]}/datanode/?host=http://{infoSecureAddr}'"/>
+  </rule>
+
   <!-- Redirection rules that rewrite the Location reponse header  -->
   <filter name="HDFSUI/hdfs/outbound/headers/logs">
     <content type="application/x-http-headers">
@@ -126,6 +136,9 @@
     </content>
     <content type="*/html">
        <apply path="//\{dnWebAddress\}" rule="HDFSUI/hdfs/outbound/datanode"/>
+       <!-- rules for to fix angular infoAddr variable KNOX-1242 -->
+       <apply path="\'//\{infoAddr\}\'" rule="HDFSUI/hdfs/outbound/datanode/infoAddr"/>
+       <apply path="\'//\{infoSecureAddr\}\'" rule="HDFSUI/hdfs/outbound/datanode/infoSecureAddr"/>
     </content>
   </filter>
 


Mime
View raw message