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

A policy should be deleted if it has no policyItems

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

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

      Description

      Condition: A policy contains only one policyItem and the policyItem only sets one user and no groups.

      Action: Delete the user in the policyItem using API: 'http://ip:6080/service/xusers/users/{id}?forceDelete=true'

      Result: The policy still exists, but it has no policyItems. A policy with no policyItems is completely meaningless and it should be deleted.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              RickyMa RickyMa

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h

                  Issue deployment