You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Doroszlai, Attila (JIRA)" <ji...@apache.org> on 2018/12/10 08:24:00 UTC

[jira] [Commented] (AMBARI-25025) Duplicate kerberos_descriptor name reported as HTTP 500

    [ https://issues.apache.org/jira/browse/AMBARI-25025?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16714422#comment-16714422 ] 

Doroszlai, Attila commented on AMBARI-25025:
--------------------------------------------

Additional bug: if request body is missing (ie. no Kerberos descriptor is provided), a confusing error message is returned.

{noformat}
$ curl -X POST "http://${AMBARI_SERVER}:8080/api/v1/kerberos_descriptors/metrics_descriptor"
HTTP/1.1 400 Bad Request
{
  "status" : 400,
  "message" : "The properties [RAW_REQUEST_BODY] specified in the request or predicate are not supported for the resource type KerberosDescriptor."
}
{noformat}

> 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
>             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)