[
https://issues.apache.org/jira/browse/SENTRY-1986?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16203968#comment-16203968
]
Sergio Peña commented on SENTRY-1986:
-------------------------------------
Our internal statical security tests found this NPE issue. It did not happen on
any production environment yet.
This is the proposal patch:
{noformat}
if (privilegeObj != null && privilegeObj.getPartSpec() != null) {
throw new
SemanticException(SentryHiveConstants.PARTITION_PRIVS_NOT_SUPPORTED);
}
{noformat}
> Fix NPE on createGrantTask from SentryHiveAuthorizationTaskFactoryImpl.java
> ---------------------------------------------------------------------------
>
> Key: SENTRY-1986
> URL: https://issues.apache.org/jira/browse/SENTRY-1986
> Project: Sentry
> Issue Type: Bug
> Components: Sentry
> Affects Versions: 2.0.0
> Reporter: Sergio Peña
> Assignee: Sergio Peña
> Attachments: SENTRY-1986.1.patch
>
>
> A NPE can happen on the following code from
> SentryHiveAuthorizationTaskFactoryImpl.java:
> {noformat}
> if (privilegeObj.getPartSpec() != null) {
> throw new
> SemanticException(SentryHiveConstants.PARTITION_PRIVS_NOT_SUPPORTED);
> }
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)