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 08:41:01 UTC

[jira] [Updated] (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 ]

zhaohongtao updated HIVE-17211:
-------------------------------
    Summary: SQLStdHiveAccessController.showPrivileges Method may encountered  Null pointer  (was: SQLStdHiveAccessController.showPrivileges Method may encountered  遇到空指针 Null pointer)

> 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
>
>       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()));
> The method  mClient.list_privileges(
>                         principalName, principalType,
>                         this.getThriftHiveObjectRef(privObj)); may return null ;



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)