falcon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From suh...@apache.org
Subject falcon git commit: FALCON-915 Failed to load data. Error: 400 Param user.name can't be empty - Web UI/0.6. Contributed by Balu Vellanki
Date Thu, 26 Mar 2015 20:41:19 GMT
Repository: falcon
Updated Branches:
  refs/heads/master ae5ba5b01 -> 24eecc4a0


FALCON-915 Failed to load data. Error: 400 Param user.name can't be empty - Web UI/0.6. Contributed
by Balu Vellanki


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

Branch: refs/heads/master
Commit: 24eecc4a02e3d0e6b60c6ffc825ffd6105d15fbc
Parents: ae5ba5b
Author: Suhas Vasu <suhas.v@inmobi.com>
Authored: Fri Mar 27 02:10:38 2015 +0530
Committer: Suhas Vasu <suhas.v@inmobi.com>
Committed: Fri Mar 27 02:10:38 2015 +0530

----------------------------------------------------------------------
 CHANGES.txt           | 3 +++
 html5-ui/js/falcon.js | 9 ++++++++-
 2 files changed, 11 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/falcon/blob/24eecc4a/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 21af5fc..7539bcf 100755
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -10,6 +10,9 @@ Trunk (Unreleased)
    FALCON-822 Add reverse look up API (Ajay Yadava via Suhas Vasu)
 
   IMPROVEMENTS
+   FALCON-915 Failed to load data. Error: 400 Param user.name
+   can't be empty - Web UI/0.6 (Balu Vellanki via Suhas Vasu)
+
    FALCON-933 misleading error msg on cluster submit failure
    (Sowmya Ramesh via Suhas Vasu)
 

http://git-wip-us.apache.org/repos/asf/falcon/blob/24eecc4a/html5-ui/js/falcon.js
----------------------------------------------------------------------
diff --git a/html5-ui/js/falcon.js b/html5-ui/js/falcon.js
index 0dba31a..897c15e 100644
--- a/html5-ui/js/falcon.js
+++ b/html5-ui/js/falcon.js
@@ -31,7 +31,14 @@
   function add_user(url) {
      var paramSeparator = (url.indexOf('?') != -1) ? '&' : '?';
      var user_id = getQuery_params()['user.name'];
-     return (user_id == undefined) ? url : (url + paramSeparator + 'user.name=' + user_id);
+     if (user_id == undefined) {
+        user_id = localStorage.getItem('falconUserName');
+        if (user_id == undefined) {
+            user_id = prompt("Please enter user.name", "");
+        }
+     }
+     localStorage.setItem('falconUserName', user_id);
+     return (url + paramSeparator + 'user.name=' + user_id);
   }
 
   function getQuery_params() {


Mime
View raw message