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

A policy should be deleted if it has no policyItems

    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

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

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                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