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:36 UTC
[ambari] branch branch-2.7 updated: [AMBARI-24604] Stack advisor
error popup with "500 status code" thrown during customize service page of
install wizard (dsen) (#2269)
This is an automated email from the ASF dual-hosted git repository.
dsen 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 2a084df [AMBARI-24604] Stack advisor error popup with "500 status code" thrown during customize service page of install wizard (dsen) (#2269)
2a084df is described below
commit 2a084df031d640c3427932eadf3c30b66cb60339
Author: Dmitry Sen <ds...@apache.org>
AuthorDate: Mon Sep 10 13:46:34 2018 +0300
[AMBARI-24604] Stack advisor error popup with "500 status code" thrown during customize service page of install wizard (dsen) (#2269)
---
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"])