HDFS-9877. HDFS Namenode UI: Fix browsing directories that need to be encoded (Ravi Prakash via aw)
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/15f01843 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/15f01843 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/15f01843 Branch: refs/heads/YARN-4757 Commit: 15f018434c5b715729488fd0b03a11f1bc943470 Parents: 713cb71 Author: Allen Wittenauer <a...@apache.org> Authored: Fri Jun 3 17:06:29 2016 -0700 Committer: Allen Wittenauer <a...@apache.org> Committed: Fri Jun 3 17:06:29 2016 -0700 ---------------------------------------------------------------------- hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/15f01843/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.js ---------------------------------------------------------------------- diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.js b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.js index 102da9d..adb83a8 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.js +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.js @@ -33,7 +33,7 @@ $(window).bind('hashchange', function () { $('#alert-panel').hide(); - var dir = window.location.hash.slice(1); + var dir = decodeURIComponent(window.location.hash.slice(1)); if(dir == "") { dir = "/"; } --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-commits-h...@hadoop.apache.org