Doroszlai, Attila created AMBARI-25025:
------------------------------------------

             Summary: Duplicate kerberos_descriptor name reported as HTTP 500
                 Key: AMBARI-25025
                 URL: https://issues.apache.org/jira/browse/AMBARI-25025
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
            Reporter: Doroszlai, Attila
            Assignee: Doroszlai, Attila
             Fix For: 2.8.0


Duplicate {{kerberos_descriptor}} name is reported as HTTP 500 Server Error.  
It should result in HTTP 409 Conflict.

{noformat}
$ curl -X POST -d @metrics_descriptor.json 
"http://${AMBARI_SERVER}:8080/api/v1/kerberos_descriptors/metrics_descriptor";
HTTP/1.1 201 Created
$ curl -X POST -d @metrics_descriptor.json 
"http://${AMBARI_SERVER}:8080/api/v1/kerberos_descriptors/metrics_descriptor";
HTTP/1.1 500 Server Error
...
  Detail: Key (kerberos_descriptor_name)=(metrics_descriptor) already exists.
{noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to