Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
0.12.0, 0.13.0
-
One cannot create table (whether or not they provide a LOCATION) if they do not have WRITE permission on the database directory.
Description
Its possible to create a table under a database where the user does not have write permission. It can be done by specifying a LOCATION where the user has write access (say /tmp/foo). This should be restricted.
HdfsAuthorizationProvider (which typically runs on client) checks the database directory during table creation. But StorageBasedAuthorizationProvider does not.