ソースを参照

AMBARI-1503. Ajax call sometimes adds multiple question marks in the query causing bad requests. (yusaku)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1450502 13f79535-47bb-0310-9956-ffa450edef68
Yusaku Sako 12 年 前
コミット
b219c06380
2 ファイル変更4 行追加1 行削除
  1. 3 0
      CHANGES.txt
  2. 1 1
      ambari-web/app/utils/http_client.js

+ 3 - 0
CHANGES.txt

@@ -376,6 +376,9 @@ Trunk (unreleased changes):
 
  BUG FIXES
 
+ AMBARI-1503. Ajax call sometimes adds multiple question marks in the query
+ causing bad requests. (yusaku)
+
  AMBARI-1463. State of HBase region server not updated when instance is shut down on a cluster not installed via Ambari. (tbeerbower)
  
  AMBARI-1494. Browser memory consumption issues. (jaimin)

+ 1 - 1
ambari-web/app/utils/http_client.js

@@ -57,7 +57,7 @@ App.HttpClient = Em.Object.create({
     var xhr = new XMLHttpRequest();
     var curTime = new Date().getTime();
 
-    xhr.open('GET', url + "?_=" + curTime, true);
+    xhr.open('GET', url + (url.indexOf('?') >= 0 ? '&_=' : '?_=') + curTime, true);
     xhr.send(null);
 
     this.onReady(xhr, "", ajaxOptions, mapper, errorHandler);