From 87e09859f148c369b0ead6cdcf3293c39f2abc4a Mon Sep 17 00:00:00 2001 From: Rohith Sharma K S Date: Fri, 20 Apr 2018 19:35:17 +0530 Subject: [PATCH] YARN-8182. [UI2] Proxy- Clicking on nodes under Nodes HeatMap gives 401 error. Contributed by Sunil G. --- .../src/main/webapp/app/components/nodes-heatmap.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/components/nodes-heatmap.js b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/components/nodes-heatmap.js index 7802d423a8..1f772defcd 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/components/nodes-heatmap.js +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/components/nodes-heatmap.js @@ -228,8 +228,8 @@ export default BaseChartComponent.extend({ rect.attr("fill", "DimGray"); } var node_id = data.get("id"), - node_addr = data.get("nodeHTTPAddress"), - href = `#/yarn-node/${node_id}/${node_addr}`; + node_addr = encodeURIComponent(data.get("nodeHTTPAddress")), + href = `#/yarn-node/${node_id}/${node_addr}/info`; var a = g.append("a") .attr("href", href); a.append("text")