You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ao...@apache.org on 2015/02/06 19:38:48 UTC

ambari git commit: AMBARI-9520. Ambari job view does not load with HTTPS ATS setup (aonishuk)

Repository: ambari
Updated Branches:
  refs/heads/trunk 93e70b6ad -> f84f63980


AMBARI-9520. Ambari job view does not load with HTTPS ATS setup  (aonishuk)


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

Branch: refs/heads/trunk
Commit: f84f639806e1691d8f31084b588650e30cecb255
Parents: 93e70b6
Author: Andrew Onishuk <ao...@hortonworks.com>
Authored: Fri Feb 6 20:38:29 2015 +0200
Committer: Andrew Onishuk <ao...@hortonworks.com>
Committed: Fri Feb 6 20:38:29 2015 +0200

----------------------------------------------------------------------
 .../org/apache/ambari/server/view/HttpImpersonatorImpl.java   | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/f84f6398/ambari-server/src/main/java/org/apache/ambari/server/view/HttpImpersonatorImpl.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/view/HttpImpersonatorImpl.java b/ambari-server/src/main/java/org/apache/ambari/server/view/HttpImpersonatorImpl.java
index ed5ef3c..9d63d80 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/view/HttpImpersonatorImpl.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/view/HttpImpersonatorImpl.java
@@ -18,6 +18,7 @@
 package org.apache.ambari.server.view;
 
 
+import org.apache.ambari.server.configuration.ComponentSSLConfiguration;
 import org.apache.ambari.server.controller.internal.URLStreamProvider;
 import org.apache.ambari.server.proxy.ProxyService;
 import org.apache.ambari.view.ImpersonatorSetting;
@@ -132,7 +133,11 @@ public class HttpImpersonatorImpl implements HttpImpersonator {
     }
 
     try {
-      URLStreamProvider urlStreamProvider = new URLStreamProvider(ProxyService.URL_CONNECT_TIMEOUT, ProxyService.URL_READ_TIMEOUT, null, null, null);
+
+      ComponentSSLConfiguration configuration = ComponentSSLConfiguration.instance();
+      URLStreamProvider urlStreamProvider = new URLStreamProvider(ProxyService.URL_CONNECT_TIMEOUT,
+          ProxyService.URL_READ_TIMEOUT, configuration.getTruststorePath(),
+          configuration.getTruststorePassword(), configuration.getTruststoreType());
 
       Map<String, List<String>> headers = new HashMap<String, List<String>>();
       headers.put(impersonatorSetting.getDoAsParamName(), new ArrayList<String>() {{add(impersonatorSetting.getUsername()); }} );