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

(cherry picked from commit 82f3ffcd64)
This commit is contained in:
hemanthboyina 2020-08-03 23:21:01 +05:30
parent 643ff4881d
commit b5d712251c
2 changed files with 6 additions and 2 deletions

View File

@ -108,7 +108,8 @@
*/ */
function view_perm_details(e, filename, abs_path, perms) { function view_perm_details(e, filename, abs_path, perms) {
$('.explorer-perm-links').popover('destroy'); $('.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) { .on('shown.bs.popover', function(e) {
var popover = $(this), parent = popover.parent(); var popover = $(this), parent = popover.parent();
//Convert octal to binary permissions //Convert octal to binary permissions
@ -122,6 +123,7 @@
}); });
}) })
.popover('show'); .popover('show');
}, 100);
} }
// Use WebHDFS to set permissions on an absolute path // Use WebHDFS to set permissions on an absolute path

View File

@ -108,7 +108,8 @@
*/ */
function view_perm_details(e, filename, abs_path, perms) { function view_perm_details(e, filename, abs_path, perms) {
$('.explorer-perm-links').popover('destroy'); $('.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) { .on('shown.bs.popover', function(e) {
var popover = $(this), parent = popover.parent(); var popover = $(this), parent = popover.parent();
//Convert octal to binary permissions //Convert octal to binary permissions
@ -122,6 +123,7 @@
}); });
}) })
.popover('show'); .popover('show');
}, 100);
} }
// Use WebHDFS to set permissions on an absolute path // Use WebHDFS to set permissions on an absolute path