[ 
https://issues.apache.org/jira/browse/AMBARI-18863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jonathan Hurley updated AMBARI-18863:
-------------------------------------
    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

> Upgrade Type Is Incorrectly Quoted When Serialized
> --------------------------------------------------
>
>                 Key: AMBARI-18863
>                 URL: https://issues.apache.org/jira/browse/AMBARI-18863
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.5.0
>            Reporter: Jonathan Hurley
>            Assignee: Jonathan Hurley
>            Priority: Blocker
>             Fix For: 2.5.0
>
>         Attachments: AMBARI-18863.patch
>
>
> When creating an upgrade, the serialized {{UpgradeType}} is quoted causing 
> problems with the python code:
> {code}
>     "commandParams": {
>         "upgrade_direction": "upgrade",
>         "service_package_folder": "common-services/ZOOKEEPER/3.4.5/package",
>         "script": "scripts/zookeeper_server.py",
>         "hooks_folder": "HDP/2.0.6/hooks",
>         "upgrade_type": "\"host_ordered_upgrade\"",
> {code}
> The problem is the Gson, when converting the enum into a String, is giving 
> back a JSON-ready String which includes the quotes. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to