You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "zhaohongtao (JIRA)" <ji...@apache.org> on 2017/07/31 09:37:02 UTC
[jira] [Work started] (HIVE-17211)
SQLStdHiveAccessController.showPrivileges Method may encountered Null
pointer
[ https://issues.apache.org/jira/browse/HIVE-17211?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on HIVE-17211 started by zhaohongtao.
------------------------------------------
> SQLStdHiveAccessController.showPrivileges Method may encountered Null pointer
> ------------------------------------------------------------------------------
>
> Key: HIVE-17211
> URL: https://issues.apache.org/jira/browse/HIVE-17211
> Project: Hive
> Issue Type: Bug
> Components: Security
> Affects Versions: 2.2.0
> Reporter: zhaohongtao
> Assignee: zhaohongtao
> Priority: Minor
> Attachments: HIVE-17211.patch
>
>
> List<HiveObjectPrivilege> msObjPrivs = mClient.list_privileges(
> principalName, principalType,
> this.getThriftHiveObjectRef(privObj));
> >>> CID 166074: Null pointer dereferences (NULL_RETURNS)
> >>> Calling a method on null object "msObjPrivs".
> for (HiveObjectPrivilege msObjPriv : msObjPrivs) {
> HivePrincipal resPrincipal = new HivePrincipal(
> msObjPriv.getPrincipalName(),
> AuthorizationUtils.getHivePrincipalType(msObjPriv
> .getPrincipalType()));
> Reason:
> The method mClient.list_privileges(
> principalName, principalType,
> this.getThriftHiveObjectRef(privObj)); may return null ;
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)