Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-4671

Noticed a change in Behaviour of DatasetInDataShare Object for 2 cases

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • None
    • None
    • Ranger
    • None

    Description

      There was change in behaviour of DatasetInDataShare Object for below mentioned 2 cases

      case 1 :    

      1) create a user with Ranger ROLE as ROLE_USER

      2)create a dataShare with the same user's account so the user will be dataShare Admin

      3)create a dataset the above user should be absent in dataset ACL 

      4)create DatasetInDataShare object for these dataset,dataShare with status as ACTIVE

      5)update this DatasetInDataShare object  by the above created user's account change the status from ACTIVE to GRANTED the response is 200 expected response is 400 with validation message stating (Not a ADMIN for dataset)

      case 2:    

      1) create a user with Ranger ROLE as ROLE_USER

      2)create a dataShare with the same user's account so the user will be dataShare Admin

      3)create a dataset the above user should be absent in dataset ACL 

      4)create DatasetInDataShare object for these dataset,dataShare with status as ACTIVE

      5)update this DatasetInDataShare object  by the above created user's account change the status from ACTIVE to DENIED the response is 200 expected response is 400 with validation message stating (Not a ADMIN for dataset)

      The Below image describes the 2 cases and its behaviour Before the change (currently we get Response as 200 )

      Attachments

        1. Regression.png
          38 kB
          Prashant Satam

        Activity

          People

            prashant_satam Prashant Satam
            prashant_satam Prashant Satam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: