Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-7872

StorageBasedAuthorizationProvider should check access perms of parent directory for DROP actions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • Authorization
    • None

    Description

      When dropping a table partition, StorageBasedAuthorizationProvider is checking for write permission on the partition directory itself to check if the user is allowed to drop the partition. However to delete the partition directory, you really need write perms on the parent directory of the file you are going to delete. So SBA will authorize the user to drop the partition but actually deleting the partition directory will fail if the user does not have the correct access on the table (parent) directory.

      SBA should also check the parent directory for DROP actions during its auth check.

      Attachments

        Issue Links

          Activity

            People

              thejas Thejas Nair
              jdere Jason Dere
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: