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

Handle trailing slash in the ranger Hive URL policy authorization

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0, 3.0.0
    • 3.0.0, 2.3.0
    • Ranger
    • None

    Description

      Currently when there is a trailing slash in the ranger URL policy in Hive, it doesn't authorizer the URL request. The trailing slash has to be remove to have the authorization done correctly.

      e.g. 

      1) URL policy is maintained for "hdfs://node1.site/test/data/" with or without recursive on.

      2) Authorization request from Hive always comes without the trailing slash ( hdfs://node1.site/test/data) and this result in authorization failure. 

      Url policy with or without trailing slash has to behave the same way.  As per POSIX perspective "hdfs://node1.site/test/data/" and "hdfs://node1.site/test/data" are same and the policy has to authorize the request correctly.

      Attachments

        Issue Links

          Activity

            People

              rmani Ramesh Mani
              rmani Ramesh Mani
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: