Ver código fonte

AMBARI-2438. If HTTPS is enabled, server does not pass correct port during bootstrap. (Dmitry Lysnichenko via swagle)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1494777 13f79535-47bb-0310-9956-ffa450edef68
Siddharth Wagle 12 anos atrás
pai
commit
8f79c64f91

+ 1 - 1
ambari-server/src/main/java/org/apache/ambari/server/bootstrap/BootStrapImpl.java

@@ -64,7 +64,7 @@ public class BootStrapImpl {
         InetAddress.getLocalHost().getCanonicalHostName());
         InetAddress.getLocalHost().getCanonicalHostName());
     this.clusterOsType = conf.getServerOsType();
     this.clusterOsType = conf.getServerOsType();
     this.projectVersion = ambariMetaInfo.getServerVersion();
     this.projectVersion = ambariMetaInfo.getServerVersion();
-    this.serverPort = conf.getClientApiPort();
+    this.serverPort = (conf.getApiSSLAuthentication())? conf.getClientSSLApiPort() : conf.getClientApiPort();
   }
   }
 
 
   /**
   /**