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


View the commit online:
https://github.com/apache/ambari/commit/97794e6b33519c2a084a205713a3a2cd6013dfac

The following commit(s) were added to refs/heads/branch-2.7 by this push:
     new 97794e6  AMBARI-25153. Ambari 2.7.3 web hangs at first step 
installation wizard
     new 262c7f0  Merge pull request #3129 from hiveww/AMBARI-25153-branch-2.7
97794e6 is described below

commit 97794e6b33519c2a084a205713a3a2cd6013dfac
Author: Alex Antonenko <aantone...@hortonworks.com>
AuthorDate: Fri Nov 15 16:34:36 2019 +0200

    AMBARI-25153. Ambari 2.7.3 web hangs at first step installation wizard
---
 ambari-web/app/controllers/installer.js | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/ambari-web/app/controllers/installer.js 
b/ambari-web/app/controllers/installer.js
index 4863d2b..fb47288 100644
--- a/ambari-web/app/controllers/installer.js
+++ b/ambari-web/app/controllers/installer.js
@@ -305,7 +305,9 @@ App.InstallerController = 
App.WizardController.extend(App.Persist, {
         }
       }, this);
     }
-
+    if (!data.items || !data.items.length) {
+      this.setSelected(true, params.dfd);
+    }
     
data.items.sortProperty('VersionDefinition.stack_version').reverse().forEach(function
 (versionDefinition) {
       // to display repos panel, should map all available operating systems 
including empty ones
       var stackInfo = {};
@@ -352,7 +354,8 @@ App.InstallerController = 
App.WizardController.extend(App.Persist, {
       stacks.sortProperty('id').set('lastObject.isSelected', true);
     }
     this.set('content.stacks', App.Stack.find());
-    App.set('currentStackVersion', 
App.Stack.find().findProperty('isSelected').get('stackNameVersion'));
+    var selected = App.Stack.find().findProperty('isSelected');
+    App.set('currentStackVersion', selected ? selected.get('stackNameVersion') 
: null);
     dfd.resolve();
   },
 

Reply via email to