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

Incorrect response when trying to delete user attached to a security zone

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • master
    • 2.0.0
    • Ranger
    • None

    Description

      Scenario:
      Create a test user (user role is USER)
      Create a security zone with the above user as admin user
      Try to delete the user
      Delete operation fails, but there is no reason for the failure, api response gives a 404 error
      The same occurs if that user is tagged as auditor for security zone

      The scenario is applicable for group also

      Expected: If user delete is not allowed, proper response indicating the reason for failure should be displayed

      Note: This behaviour is different from user assigned as delegated admin for a policy, even if a user is delegated admin for a policy, user delete is successful

      Request URL: http://<host>:<port>/service/xusers/secure/users/id/<id>?forceDelete=true
      Request Method: DELETE
      Status Code: 404 Not Found
      

      Attachments

        Issue Links

          Activity

            People

              nikhil Nikhil Purbhe
              suja suja s
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: