You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "suja s (Jira)" <ji...@apache.org> on 2019/10/11 09:38:00 UTC

[jira] [Created] (RANGER-2617) Provide descriptive error message when role delete not allowed

suja s created RANGER-2617:
------------------------------

             Summary: Provide descriptive error message when role delete not allowed
                 Key: RANGER-2617
                 URL: https://issues.apache.org/jira/browse/RANGER-2617
             Project: Ranger
          Issue Type: Bug
          Components: admin
            Reporter: suja s


Scenario:
Create a role r1
Create a ranger policy for role r1
Try to delete role
Role delete is not allowed as a policy exists with the specified role

Response:
{noformat}
{"statusCode":1,"msgDesc":"XXRole can't be deleted","messageList":[{"name":"OPER_NOT_ALLOWED_FOR_STATE","rbKey":"xa.error.oper_not_allowed_for_state","message":"Operation not allowed in current state","objectId":9}]}
{noformat}
Expected:
Descriptive message with details on why the operation is not allowed



--
This message was sent by Atlassian Jira
(v8.3.4#803005)