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

A policy should be deleted if it has no policyItems

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • master
    • 2.1.0
    • admin, Ranger
    • 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

        1. RANGER-2856.patch
          5 kB
          RickyMa
        2. image-2020-07-02-21-58-59-495.png
          93 kB
          Pradeep Agrawal
        3. image-2020-07-02-22-03-36-267.png
          10 kB
          Pradeep Agrawal

        Issue Links

          Activity

            People

              Unassigned Unassigned
              RickyMa RickyMa
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              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