If URI has no scheme and authority when granting URI privileges, e.g GRANT ALL ON URI '/path/to/table'. Sentry should automatically handle it with default scheme and authority based on the Hadoop configs Sentry has been given.
There are two places could be changed to support it:
- When grant the URI privileges
- When check the URI privileges
However, when granting the URI privileges, the URI path does not necessary needs to be presented in the filesystem, thus choose to make the URI fully qualified during the privileges checking time.