[
https://issues.apache.org/jira/browse/AMBARI-12237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Oleg Nechiporenko updated AMBARI-12237:
---------------------------------------
Attachment: AMBARI-12237.patch
> FE: incorrect request for updating a config group
> -------------------------------------------------
>
> Key: AMBARI-12237
> URL: https://issues.apache.org/jira/browse/AMBARI-12237
> Project: Ambari
> Issue Type: Bug
> Components: ambari-web
> Affects Versions: 2.1.0
> Reporter: Oleg Nechiporenko
> Assignee: Oleg Nechiporenko
> Priority: Blocker
> Fix For: 2.1.0
>
> Attachments: AMBARI-12237.patch
>
>
> STR:
> 1. Create HDFS config group name - h123, description - <123> Click Save
> 2. Add host. Click Save
> 3. Override property "Failed disk tolerance". Click "Save"
> Request fails with 405 Method Not Allowed
> Request
> {code}
> curl 'http://ambari-server:8080/api/v1/clusters/c1/config_groups/' -X PUT -H
> 'Cookie: AMBARISESSIONID=qm4bxe12pzzkc8dhu75hqz5v' -H 'Accept-Encoding: gzip,
> deflate, sdch' -H 'Accept-Language:
> ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4,uk;q=0.2' -H 'X-Requested-By:
> X-Requested-By' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64)
> AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/43.0.2357.81
> Chrome/43.0.2357.81 Safari/537.36' -H 'Content-Type:
> application/x-www-form-urlencoded; charset=UTF-8' -H 'Accept:
> application/json, text/javascript, */*; q=0.01' -H 'X-Compress: null' -H
> 'X-Requested-With: XMLHttpRequest' -H 'Connection: keep-alive' --data
> '[{"ConfigGroup":{"cluster_name":"c1","group_name":"h123","tag":"HDFS","description":"r>1","hosts":[{"host_name":"c6403.ambari.apache.org"}],"service_config_version_note":"","desired_configs":[{"type":"hdfs-site","tag":"version1435733165914","properties":{"dfs.datanode.failed.volumes.tolerated":"1"}}]}}]'
> --compressed
> {code}
> UI Should call /api/v1/clusters/c1/config_groups/\{group_id\} , but not
> /api/v1/clusters/c1/config_groups/
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)