Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-1611

Regression: Incorrect error code for the negative tests. Returned: "500 server error", expected: "400 Bad Request"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 0.8-incubating
    • 0.8.1, 1.0.0
    • atlas-core
    • None

    Description

      • 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,
              {
                "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
                }
              }
        
      • 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".

      Attachments

        1. ATLAS-1611.3.patch
          4 kB
          Madhan Neethiraj
        2. ATLAS-1611.4.patch
          1 kB
          Sarath Subramanian

        Activity

          People

            sarath Sarath Subramanian
            ayubpathan Ayub Pathan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: