ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From srima...@apache.org
Subject [2/3] git commit: AMBARI-7836. Slider View: Unable to create app, 500 error on POST request (srimanth)
Date Fri, 17 Oct 2014 17:08:17 GMT
AMBARI-7836. Slider View: Unable to create app, 500 error on POST request (srimanth)


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

Branch: refs/heads/trunk
Commit: 007cb13f1bcb87f067538f648237ce4a700f14d4
Parents: 83924e0
Author: Srimanth Gunturi <sgunturi@hortonworks.com>
Authored: Fri Oct 17 09:45:51 2014 -0700
Committer: Srimanth Gunturi <sgunturi@hortonworks.com>
Committed: Fri Oct 17 10:07:55 2014 -0700

----------------------------------------------------------------------
 .../ambari/view/slider/SliderAppsViewControllerImpl.java       | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/007cb13f/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsViewControllerImpl.java
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsViewControllerImpl.java
b/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsViewControllerImpl.java
index bdd3c0f..ad3acd0 100644
--- a/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsViewControllerImpl.java
+++ b/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsViewControllerImpl.java
@@ -1091,8 +1091,10 @@ public class SliderAppsViewControllerImpl implements SliderAppsViewController
{
       installArgs.replacePkg = true;
 
       final ActionInstallKeytabArgs keytabArgs = new ActionInstallKeytabArgs();
-      keytabArgs.keytabUri = getUserToRunAsKeytab();
-      keytabArgs.folder = appName;
+      if (securityEnabled) {
+        keytabArgs.keytabUri = getUserToRunAsKeytab();
+        keytabArgs.folder = appName;
+      }
 
       return invokeSliderClientRunnable(new SliderClientContextRunnable<String>() {
         @Override


Mime
View raw message