Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.0.0
-
None
Description
When creating or updating an alert definition from the API, any numerical values in the source element are converted into String and stored in the database as such. This causes de-serialization problems for definitions on Ambari Server restart.
The problem stems from how Ambari converts the JSON body to a Map inside of JsonRequestBodyParser. This uses a Map<String,String> instead of a Map<String,Object>. As a result, the JsonObject has it's asText() method used to retrieve the value.
Attachments
Attachments
Issue Links
- links to