Browse Source

HDFS-15503. File and directory permissions are not able to be modified from WebUI.

(cherry picked from commit 82f3ffcd64d25cf3a2f5e280e07140994e0ba8cb)
hemanthboyina 4 năm trước cách đây
mục cha
commit
b5d712251c

+ 3 - 1
hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/webapps/router/explorer.js

@@ -108,7 +108,8 @@
    */
   function view_perm_details(e, filename, abs_path, perms) {
     $('.explorer-perm-links').popover('destroy');
-    e.popover({html: true, content: $('#explorer-popover-perm-info').html(), trigger: 'focus'})
+   setTimeout(function() {
+    e.popover({html: true,sanitize: false, content: $('#explorer-popover-perm-info').html(), trigger: 'focus'})
       .on('shown.bs.popover', function(e) {
         var popover = $(this), parent = popover.parent();
         //Convert octal to binary permissions
@@ -122,6 +123,7 @@
         });
       })
       .popover('show');
+      }, 100);
   }
 
   // Use WebHDFS to set permissions on an absolute path

+ 3 - 1
hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.js

@@ -108,7 +108,8 @@
    */
   function view_perm_details(e, filename, abs_path, perms) {
     $('.explorer-perm-links').popover('destroy');
-    e.popover({html: true, content: $('#explorer-popover-perm-info').html(), trigger: 'focus'})
+   setTimeout(function() {
+    e.popover({html: true,sanitize: false, content: $('#explorer-popover-perm-info').html(), trigger: 'focus'})
       .on('shown.bs.popover', function(e) {
         var popover = $(this), parent = popover.parent();
         //Convert octal to binary permissions
@@ -122,6 +123,7 @@
         });
       })
       .popover('show');
+      }, 100);
   }
 
   // Use WebHDFS to set permissions on an absolute path