You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Sarath Subramanian (JIRA)" <ji...@apache.org> on 2017/04/28 00:04:04 UTC

[jira] [Commented] (ATLAS-1611) Regression: Incorrect error code for the negative tests. Returned: "500 server error", expected: "400 Bad Request"

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

Sarath Subramanian commented on ATLAS-1611:
-------------------------------------------

Committed to:
* master: http://git-wip-us.apache.org/repos/asf/incubator-atlas/commit/3a70d11d
* 0.8-incubating: http://git-wip-us.apache.org/repos/asf/incubator-atlas/commit/97b71e8b

> Regression: Incorrect error code for the negative tests. Returned: "500 server error", expected: "400 Bad Request"
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: ATLAS-1611
>                 URL: https://issues.apache.org/jira/browse/ATLAS-1611
>             Project: Atlas
>          Issue Type: Bug
>          Components:  atlas-core
>    Affects Versions: trunk, 0.8-incubating
>            Reporter: Ayub Pathan
>            Assignee: Sarath Subramanian
>            Priority: Critical
>             Fix For: trunk, 0.8-incubating
>
>         Attachments: ATLAS-1611.3.patch, ATLAS-1611.4.patch
>
>
> * *Scenario-1: Creating an entity with invalidGUID results in "500 server error", expected response is "400 Bad Request"*
> Sample json when posted to atlas results in 500 internal error,
> {noformat}
>       {
>         "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Reference",
>         "id":{
>           "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Id",
>           "id":"invalid",
>           "version":0,
>           "typeName":"ComplexEntityTestColumnroshbaacqm",
>           "state":"ACTIVE"
>         },
>         "typeName":"ComplexEntityTestColumnroshbaacqm",
>         "values":{
>           "name":"column1hlrfnjmmth"
>         },
>         "traitNames":[
>         ],
>         "traits":{
>         },
>         "systemAttributes":{
>           "createdBy":null,
>           "modifiedBy":null,
>           "createdTime":null,
>           "modifiedTime":null
>         }
>       }
> {noformat}
> * *Scenario-2: Full update REST API call of an entity with request payload having unsupported value for a type(for example: for float type value is set as "str") results in "500 server error" but the expected response is "400 bad request".*



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)