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

Doroszlai, Attila updated AMBARI-25025:
---------------------------------------
    Status: Patch Available  (was: Open)

> 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
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 2.8.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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