John Speidel created AMBARI-1745:
------------------------------------
Summary: Ambari API returns wrong status for bad configuration
request
Key: AMBARI-1745
URL: https://issues.apache.org/jira/browse/AMBARI-1745
Project: Ambari
Issue Type: Bug
Affects Versions: 1.2.2
Reporter: John Speidel
When setting a non-existant configuration on a service, a 500 status is
returned instead of 400.
curl --user admin:admin -i -X PUT -d '{"config": {"core-site": "version1",
"hdfs-site": "version1", "global" : "version999999" }}'
http://localhost:8080/api/v1/clusters/c1/services/HDFS
{
"status" : 500,
"message" : "org.apache.ambari.server.controller.spi.SystemException: An
internal system exception occurred: Trying to update service with invalid
configs, clusterName=c1, clusterId=1, serviceName=HDFS,
invalidConfigType=global, invalidConfigTag=version999999"
}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira