You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Nikhil Purbhe (Jira)" <ji...@apache.org> on 2019/10/17 10:58:00 UTC
[jira] [Commented] (RANGER-2617) Provide descriptive error message
when role delete not allowed
[ https://issues.apache.org/jira/browse/RANGER-2617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16953624#comment-16953624 ]
Nikhil Purbhe commented on RANGER-2617:
---------------------------------------
patch committed on apache [master|https://github.com/apache/ranger/commit/f11d297ad74407e51707ba890b4f07db8ddb3be4]
> 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
> Assignee: Nikhil Purbhe
> Priority: Minor
>
> 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)