ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Hurley (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-18863) Upgrade Type Is Incorrectly Quoted When Serialized
Date Fri, 11 Nov 2016 15:32:58 GMT

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

Jonathan Hurley updated AMBARI-18863:
-------------------------------------
    Status: Patch Available  (was: Open)

> 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)

Mime
View raw message