[ https://issues.apache.org/jira/browse/AMBARI-25025?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16715565#comment-16715565 ]
Hudson commented on AMBARI-25025: --------------------------------- SUCCESS: Integrated in Jenkins build Ambari-trunk-Commit #10369 (See [https://builds.apache.org/job/Ambari-trunk-Commit/10369/]) AMBARI-25025. Duplicate kerberos_descriptor name reported as HTTP 500 (github: [https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=7e5cf0afbded4326883d9779b85024f476bfb62a]) * (edit) ambari-server/src/main/java/org/apache/ambari/server/orm/entities/KerberosDescriptorEntity.java * (edit) ambari-server/src/test/java/org/apache/ambari/server/controller/internal/KerberosDescriptorResourceProviderTest.java * (edit) ambari-server/src/main/java/org/apache/ambari/server/controller/internal/KerberosDescriptorResourceProvider.java > 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: 0.5h > 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)