This is an automated email from the ASF dual-hosted git repository.

alexantonenko pushed a commit to branch branch-2.7
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/branch-2.7 by this push:
     new 8254d44  AMBARI-25453. If hive.server2.webui.use.ssl was setted to 
true it will always use https, does not matter if now it is false
     new cfe9f0d  Merge pull request #3166 from hiveww/AMBARI-25453-branch-2.7
8254d44 is described below

commit 8254d44e92a1145cd0ac9f2d3e50d9913f51e4a6
Author: Alex Antonenko <aantone...@hortonworks.com>
AuthorDate: Fri Dec 20 16:34:58 2019 +0200

    AMBARI-25453. If hive.server2.webui.use.ssl was setted to true it will 
always use https, does not matter if now it is false
---
 ambari-web/app/mappers/service_metrics_mapper.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ambari-web/app/mappers/service_metrics_mapper.js 
b/ambari-web/app/mappers/service_metrics_mapper.js
index e2ddbfc..24bd9b5 100644
--- a/ambari-web/app/mappers/service_metrics_mapper.js
+++ b/ambari-web/app/mappers/service_metrics_mapper.js
@@ -316,7 +316,7 @@ App.serviceMetricsMapper = App.QuickDataMapper.create({
     var self = this;
     
App.router.get('configurationController').getCurrentConfigsBySites(['hive-site',
 'hive-interactive-site']).done(function (configs) {
       var hiveWebUiPort = configs.findProperty('type', 
'hive-interactive-site').properties['hive.server2.webui.port'];
-      var hiveWebUiProtoFlag = configs.findProperty('type', 
'hive-interactive-site').properties['hive.server2.webui.use.ssl'];
+      var hiveWebUiProtoFlag = configs.findProperty('type', 
'hive-interactive-site').properties['hive.server2.webui.use.ssl'] === 'true';
       var hiveWebUiProto = hiveWebUiProtoFlag ? 'https' : 'http';
       var hostNames = hiveInteractiveServers.mapProperty('host_name');
       var useIps = configs.findProperty('type', 
'hive-interactive-site').properties['hive.server2.leadertest.use.ip'];

Reply via email to