ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From srima...@apache.org
Subject [1/2] git commit: AMBARI-7836. Slider View: Unable to create app, 500 error on POST request (srimanth)
Date Fri, 17 Oct 2014 16:57:31 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-1.7.0 eb81775aa -> dd7e45e8b


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/dd7e45e8
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/dd7e45e8
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/dd7e45e8

Branch: refs/heads/branch-1.7.0
Commit: dd7e45e8b638193fc72ee4dc21348735bcf87427
Parents: 1940122
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 09:46:10 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/dd7e45e8/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