ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pallav...@apache.org
Subject ambari git commit: AMBARI-19291. User should be shown proper error message in file browser page (Madhan Mohan Reddy via pallavkul)
Date Thu, 05 Jan 2017 06:48:55 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk dcffaeda0 -> 567ce62ac


AMBARI-19291. User should be shown proper error message in file browser page (Madhan Mohan
Reddy via pallavkul)


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

Branch: refs/heads/trunk
Commit: 567ce62ac51e82249f22f7c29a1593bc4c2ac5ca
Parents: dcffaed
Author: pallavkul <pallav.kul@gmail.com>
Authored: Thu Jan 5 12:17:52 2017 +0530
Committer: pallavkul <pallav.kul@gmail.com>
Committed: Thu Jan 5 12:17:52 2017 +0530

----------------------------------------------------------------------
 .../src/main/resources/ui/app/components/hdfs-browser.js       | 5 ++++-
 .../resources/ui/app/templates/components/hdfs-browser.hbs     | 6 ++++--
 2 files changed, 8 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/567ce62a/contrib/views/wfmanager/src/main/resources/ui/app/components/hdfs-browser.js
----------------------------------------------------------------------
diff --git a/contrib/views/wfmanager/src/main/resources/ui/app/components/hdfs-browser.js
b/contrib/views/wfmanager/src/main/resources/ui/app/components/hdfs-browser.js
index c9be41a..47e7983 100644
--- a/contrib/views/wfmanager/src/main/resources/ui/app/components/hdfs-browser.js
+++ b/contrib/views/wfmanager/src/main/resources/ui/app/components/hdfs-browser.js
@@ -53,7 +53,10 @@ export default Ember.Component.extend({
     this.set("alertMessage",data.message);
   },
   actions: {
-    viewerError() {
+    viewerError(error) {
+      if (error.responseJSON && error.responseJSON.message && error.responseJSON.message.includes("Permission"))
{
+        this.showNotification({"type": "error", "message": "Permission denied"});
+      }
     },
     createFolder(){
       var self=this;

http://git-wip-us.apache.org/repos/asf/ambari/blob/567ce62a/contrib/views/wfmanager/src/main/resources/ui/app/templates/components/hdfs-browser.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/wfmanager/src/main/resources/ui/app/templates/components/hdfs-browser.hbs
b/contrib/views/wfmanager/src/main/resources/ui/app/templates/components/hdfs-browser.hbs
index 437640d..4f9b4ce 100644
--- a/contrib/views/wfmanager/src/main/resources/ui/app/templates/components/hdfs-browser.hbs
+++ b/contrib/views/wfmanager/src/main/resources/ui/app/templates/components/hdfs-browser.hbs
@@ -53,8 +53,10 @@
           <div>
             {{#if alertMessage}}
               <div class="alert alert-{{alertType}} col-xs-24">
-                {{alertMessage}}-
-                {{alertDetails}}
+                {{alertMessage}}
+                {{#if alertDetails}}
+                -{{alertDetails}}
+                {{/if}}
               </div>
 
             {{/if}}


Mime
View raw message