suja s created RANGER-2383:
------------------------------
Summary: Incorrect response when trying to delete user attached to
a security zone
Key: RANGER-2383
URL: https://issues.apache.org/jira/browse/RANGER-2383
Project: Ranger
Issue Type: Bug
Components: Ranger
Reporter: suja s
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
{noformat}
Request URL:
http://<host>:<port>/service/xusers/secure/users/id/<id>?forceDelete=true
Request Method: DELETE
Status Code: 404 Not Found
{noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)