This is an automated email from the ASF dual-hosted git repository.
gifuma pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new 29ff7fb YARN-9493. Scheduler Page does not display the right page by
query string. Contributed by Wanqiang Ji.
29ff7fb is described below
commit 29ff7fb1400efecfb71491ac97194a229d0af8de
Author: Giovanni Matteo Fumarola <[email protected]>
AuthorDate: Mon May 13 10:57:12 2019 -0700
YARN-9493. Scheduler Page does not display the right page by query string.
Contributed by Wanqiang Ji.
---
.../hadoop/yarn/server/resourcemanager/webapp/SchedulerPageUtil.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git
a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/SchedulerPageUtil.java
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/SchedulerPageUtil.java
index 8c2d271..7c562cf 100644
---
a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/SchedulerPageUtil.java
+++
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/SchedulerPageUtil.java
@@ -28,7 +28,8 @@ public class SchedulerPageUtil {
html.
script().$type("text/javascript").
__("function reopenQueryNodes() {",
- " var currentParam = window.location.href.split('?');",
+ " var currentParam = decodeURIComponent(window.location.href)"
+ + ".split('?');",
" var tmpCurrentParam = currentParam;",
" var queryQueuesString = '';",
" if (tmpCurrentParam.length > 1) {",
@@ -136,6 +137,7 @@ public class SchedulerPageUtil {
"};",
"",
"function removeQueueName(queryString, queueName) {",
+ " queryString = decodeURIComponent(queryString);",
" var index = queryString.indexOf(queueName);",
" // Finding if queue is present in query param then only remove
it",
" if (index != -1) {",
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]