You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Naveen Gangam (Jira)" <ji...@apache.org> on 2020/09/11 18:48:00 UTC
[jira] [Resolved] (HIVE-24097) correct NPE exception in
HiveMetastoreAuthorizer
[ https://issues.apache.org/jira/browse/HIVE-24097?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Naveen Gangam resolved HIVE-24097.
----------------------------------
Fix Version/s: 4.0.0
Resolution: Fixed
AtzContext should is not expected to be null for the events that are currently handled. For any new event types, it could be null. We discussed throwing an exception when this is null but instead of skipping authorization but as it is not expected to be null normally, there is no risk of unauthorized access.
Fix has been committed to master. Thanks for the patch [~samuelan]
> correct NPE exception in HiveMetastoreAuthorizer
> ------------------------------------------------
>
> Key: HIVE-24097
> URL: https://issues.apache.org/jira/browse/HIVE-24097
> Project: Hive
> Issue Type: Bug
> Components: Hive
> Affects Versions: 4.0.0
> Reporter: Sam An
> Assignee: Sam An
> Priority: Minor
> Labels: pull-request-available
> Fix For: 4.0.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> In some testing, we found it's possible to have NPE if the preEventType does not fall within the several the HMS currently checks. This makes the AuthzContext a null pointer.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)