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

Export REST API should return exact matching results if polResource param is provided

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.7.0, 1.0.0, 0.7.1
    • 1.0.0, 0.7.2
    • Ranger
    • None

    Description

      Currently, Export REST API returns partial matching results also even if polResource param is provided.

      Use Case :
      1) Create a ranger hdfs policy with resource path /tmp/abcdefg
      2) Call REST API to export policy for resource path: /tmp/abcd

      http://localhost:6080/service/plugins/policies/exportJson?serviceName=source_hadoop&polResource=/tmp/abcd&resource:path=/tmp/abcd&serviceType=hdfs&resourceMatchScope=self_or_ancestor"
      ER: REST call should not return policy for resource /tmp/abcdefg
      AR: REST call is returning policy for resource /tmp/abcdefg

      Attachments

        1. RANGER-1832-master.patch
          4 kB
          Pradeep Agrawal
        2. RANGER-1832-master-2.patch
          1 kB
          Pradeep Agrawal

        Activity

          People

            pradeep Pradeep Agrawal
            pradeep Pradeep Agrawal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: