You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Yusaku Sako (JIRA)" <ji...@apache.org> on 2014/01/07 02:15:51 UTC

[jira] [Issue Comment Deleted] (AMBARI-4232) Config Group API request has empty response body

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

Yusaku Sako updated AMBARI-4232:
--------------------------------

    Comment: was deleted

(was: Tested the patch end-to-end.  +1 for the patch.)

> Config Group API request has empty response body
> ------------------------------------------------
>
>                 Key: AMBARI-4232
>                 URL: https://issues.apache.org/jira/browse/AMBARI-4232
>             Project: Ambari
>          Issue Type: Bug
>          Components: controller
>    Affects Versions: 1.5.0
>            Reporter: Siddharth Wagle
>            Assignee: Siddharth Wagle
>             Fix For: 1.5.0
>
>         Attachments: AMBARI-4232.patch
>
>
> # *API call for getting nonexistent group returns empty response with no error explanation*, for example:
> {noformat}
> curl -u admin:admin 'http://dev01.hortonworks.com:8080/api/v1/clusters/cl1/config_groups/100500' -H 'X-Requested-By:anything' -X GET
> {noformat}
> # *API call for updating existing and nonexistent group returns empty responce*, for example:
> {noformat}
> curl -u admin:admin 'http://dev01:8080/api/v1/clusters/cl1/config_groups/100500' -H 'X-Requested-By:anything' -X PUT --data '[{"ConfigGroup":{"cluster_name": "cl1","group_name": "hdfs-nextgenslaves-100","tag": "HDFS","description": "HDFS configs for rack added on May 19, 2010","hosts":[{"host_name": "dev02.com"}],"desired_configs":[{"type": "core-site","tag": "nextgen1"},{"type": "hdfs-site","tag": "nextgen1"}]}}]'
> curl -u admin:admin 'http://dev01:8080/api/v1/clusters/cl1/config_groups/2' -H 'X-Requested-By:anything' -X PUT --data '[{"ConfigGroup":{"cluster_name": "cl1","group_name": "hdfs-nextgenslaves-100","tag": "HDFS","description": "HDFS configs for rack added on May 19, 2010","hosts":[{"host_name": "dev02.com"}],"desired_configs":[{"type": "core-site","tag": "nextgen1"},{"type": "hdfs-site","tag": "nextgen1"}]}}]'
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)