Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
public Set<TSentryPrivilege> listPrivilegesByRoleName(String requestorUserName, String roleName, List<? extends Authorizable> authorizable) throws SentryUserException { TListSentryPrivilegesRequest request = new TListSentryPrivilegesRequest(); request.setProtocol_version(ThriftConstants.TSENTRY_SERVICE_VERSION_CURRENT); request.setRequestorUserName(requestorUserName); request.setRoleName(roleName); if (authorizable != null) { ==> we should add check empty of authorizable here. TSentryAuthorizable tSentryAuthorizable = setupSentryAuthorizable(authorizable); request.setAuthorizableHierarchy(tSentryAuthorizable); } ...
Please see my test cases in this patch, before this patch, it will throw exception.
Sentry client interface should be robustness, it also blocks SHOW GRANT DDL of V2 feature.
Attachments
Attachments
Issue Links
- blocks
-
SENTRY-498 Sentry integration with Hive authorization framework V2
- Resolved
- is depended upon by
-
SENTRY-514 Enable e2e tests for authorization V2
- Resolved