HDFS-9877. HDFS Namenode UI: Fix browsing directories that need to be encoded (Ravi Prakash via aw)
(cherry picked from commit 15f018434c5b715729488fd0b03a11f1bc943470) Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/b1466b81 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/b1466b81 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/b1466b81 Branch: refs/heads/branch-2 Commit: b1466b81242f4bf0815d2760ca9da32ee6c3d871 Parents: b9eedc2 Author: Allen Wittenauer <[email protected]> Authored: Fri Jun 3 17:06:29 2016 -0700 Committer: Ravi Prakash <[email protected]> Committed: Thu Sep 1 14:24:13 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/b1466b81/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 c0ac057..1739db2 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: [email protected] For additional commands, e-mail: [email protected]
