[
https://issues.apache.org/jira/browse/AMBARI-11393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Nettleton updated AMBARI-11393:
--------------------------------------
Attachment: AMBARI-11393.patch
Uploaded initial version of patch.
> Posting a Blueprint with an Invalid Stack version number throws incorrect
> error
> -------------------------------------------------------------------------------
>
> Key: AMBARI-11393
> URL: https://issues.apache.org/jira/browse/AMBARI-11393
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 2.1.0
> Reporter: Robert Nettleton
> Assignee: Robert Nettleton
> Fix For: 2.1.0
>
> Attachments: AMBARI-11393.patch
>
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> Attempting to post a Blueprint with an invalid version number (Example, HDP
> Stack version "99.99") currently results in a "500 Server Error" being thrown
> back to the client, with no information on the cause of the error. The
> ambari-server log shows that an internal exception is thrown, since the
> invalid stack error is not properly propagated back to the calling client.
> The Blueprint processing code needs to throw a more reasonable error back to
> the caller, a "400" status error, with a meaningful error message when an
> invalid stack is referenced in a Blueprint.
> I'm working on a fix for this, and will be submitting a patch shortly.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)