You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Jonathan Hurley (JIRA)" <ji...@apache.org> on 2016/11/11 15:29:58 UTC

[jira] [Created] (AMBARI-18863) Upgrade Type Is Incorrectly Quoted When Serialized

Jonathan Hurley created AMBARI-18863:
----------------------------------------

             Summary: 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


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)