hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject hadoop git commit: YARN-6258. localBaseAddress for CORS proxy configuration is not working when suffixed with forward slash in new YARN UI. Contributed by Gergely Novák.
Date Fri, 07 Apr 2017 06:13:03 GMT
Repository: hadoop
Updated Branches:
  refs/heads/trunk e7167e4a1 -> ad24464be


YARN-6258. localBaseAddress for CORS proxy configuration is not working when suffixed with
forward slash in new YARN UI. Contributed by Gergely Novák.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/ad24464b
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/ad24464b
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/ad24464b

Branch: refs/heads/trunk
Commit: ad24464be85bf37bf1677da1a2701a6acd7999d2
Parents: e7167e4
Author: Sunil G <sunilg@apache.org>
Authored: Fri Apr 7 11:42:50 2017 +0530
Committer: Sunil G <sunilg@apache.org>
Committed: Fri Apr 7 11:42:50 2017 +0530

----------------------------------------------------------------------
 .../hadoop-yarn-ui/src/main/webapp/app/services/hosts.js       | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/ad24464b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/services/hosts.js
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/services/hosts.js
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/services/hosts.js
index 19863e1..807844e 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/services/hosts.js
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/services/hosts.js
@@ -61,7 +61,11 @@ export default Ember.Service.extend({
   },
 
   localBaseAddress: Ember.computed(function () {
-    return this.localAddress();
+    var url = this.localAddress();
+    if (url.endsWith('/')) {
+      url = url.slice(0, -1);
+    }
+    return url;
   }),
 
   timelineWebAddress: Ember.computed(function () {


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message