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

Provide descriptive error message when role delete not allowed

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.0
    • Component/s: admin
    • Labels:
      None

      Description

      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:

      {"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}]}
      

      Expected:
      Descriptive message with details on why the operation is not allowed

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: