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

policies/hive/for-resource api call is returning deleted policies

    XMLWordPrintableJSON

    Details

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

      Description

      Scenario:
      1. Create a policy in a hive service for database='testdb1'.
      2. Ensure that no tag service is associated with thisĀ  hive service.

      3. Delete all policies from the hive service.

      Although, a get call to fetch all policies in ranger does not return any policy for hive service, an api call <ranger_url>/service/public/v2/api/policies/hive/for-resource?resource:database='testdb1' returns deleted policies.

        Attachments

          Activity

            People

            • Assignee:
              abhayk Abhay Kulkarni
              Reporter:
              suja suja s
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: