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

When updating a type with non-existing super type as an un-authorized user gives in-correct message in response

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • atlas-core
    • None

    Description

      When an unauthorised  user updates a type, by adding a non-existing super-type, incorret error message is thrown

      Repro steps:

      Create a classification (as authorised user)

      Update the classification  as un-authorised user(hrt_1), by adding a non-existing super type qqq

      Observed error message:

      {
      "errorCode": "ATLAS-400-00-029",
      "errorMessage": "Given typename qqq was invalid"
      }
      

      Expected error message:

      {
      "errorCode": "ATLAS-403-00-001",
      "errorMessage": "hrt_1 is not authorized to perform update classification-def child"
      }
      

      Attachments

        Issue Links

          Activity

            People

              nixon Nixon Rodrigues
              dharshmk Dharshana M Krishnamoorthy
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: