[ 
https://issues.apache.org/jira/browse/AMBARI-3763?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13821974#comment-13821974
 ] 

Siddharth Wagle commented on AMBARI-3763:
-----------------------------------------

+1 patch looks good.

> Incorrect href for a POST response using associated resources
> -------------------------------------------------------------
>
>                 Key: AMBARI-3763
>                 URL: https://issues.apache.org/jira/browse/AMBARI-3763
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Tom Beerbower
>            Assignee: Tom Beerbower
>         Attachments: AMBARI-3763.patch
>
>
> API call:
> {code}
> curl -u admin:admin -i -X POST -d 
> '[{"ConfigGroup":{"cluster_name":"c1","group_name":"hdfs-nextgenslaves-1","tag":"HDFS","description":"HDFS
>  configs for rack added on Nov 7, 
> 2013","hosts":[{"host_name":"c6402.ambari.apache.org"}],"desired_configs":[{"type":"core-site","tag":"nextgen1","properties":{"key1":"value1","ipc.client.connect.max.retries":"35"}},{"type":"global","tag":"nextgen1","properties":{"key1":"value1","namenode_heapsize":"1250m"}}]}}]'
>  http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/config_groups
> {code}
> Response:
> {code}
> {
>   "resources" : [
>     {
>       "href" : 
> "http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/config_groups/resources/2";,
>       "ConfigGroup" : {
>         "id" : 2
>       }
>     }
>   ]
> }
> {code}
> Correct href:
> {code}
> http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/config_groups/2
> {code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to