hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "zhaohongtao (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-17211) SQLStdHiveAccessController.showPrivileges Method may encountered Null pointer
Date Mon, 31 Jul 2017 09:14:00 GMT

     [ https://issues.apache.org/jira/browse/HIVE-17211?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

zhaohongtao updated HIVE-17211:
-------------------------------
    Attachment: HIVE-17211.patch

> 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
>         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)

Mime
View raw message