You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ds...@apache.org on 2018/09/10 10:46:20 UTC

[ambari] branch trunk updated: [AMBARI-24604] Stack advisor error popup with "500 status code" thrown during customize service page of install wizard (dsen) (#2270)

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

dsen pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new ab3a244  [AMBARI-24604] Stack advisor error popup with "500 status code" thrown during customize service page of install wizard (dsen) (#2270)
ab3a244 is described below

commit ab3a2449432a23cb9c050d0876717e9f581dd767
Author: Dmitry Sen <ds...@apache.org>
AuthorDate: Mon Sep 10 13:46:17 2018 +0300

    [AMBARI-24604] Stack advisor error popup with "500 status code" thrown during customize service page of install wizard (dsen) (#2270)
---
 ambari-server/src/main/resources/stacks/stack_advisor.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ambari-server/src/main/resources/stacks/stack_advisor.py b/ambari-server/src/main/resources/stacks/stack_advisor.py
index 551c2bd..eaac73a 100644
--- a/ambari-server/src/main/resources/stacks/stack_advisor.py
+++ b/ambari-server/src/main/resources/stacks/stack_advisor.py
@@ -2987,6 +2987,10 @@ class DefaultStackAdvisor(StackAdvisor):
       return None
 
     dir = re.sub("^file://", "", dir, count=1)
+
+    if not dir:
+      return self.getErrorItem("Value has wrong format")
+
     mountPoints = {}
     for mountPoint in hostInfo["disk_info"]:
       mountPoints[mountPoint["mountpoint"]] = self.to_number(mountPoint["available"])