[
https://issues.apache.org/jira/browse/HIVE-15252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chao Sun updated HIVE-15252:
----------------------------
Resolution: Fixed
Fix Version/s: 2.2.0
Status: Resolved (was: Patch Available)
Committed to master. Thanks [~jxiang] for the review!
> hive.security.command.whitelist doesn't work for 'reload function'
> ------------------------------------------------------------------
>
> Key: HIVE-15252
> URL: https://issues.apache.org/jira/browse/HIVE-15252
> Project: Hive
> Issue Type: Bug
> Components: Authorization
> Reporter: Chao Sun
> Assignee: Chao Sun
> Priority: Minor
> Fix For: 2.2.0
>
> Attachments: HIVE-15252.1.patch
>
>
> Right now the 'reload function' is handled specially in {{HiveCommand#find}}:
> {code}
> return null;
> } else if(command.length > 1 && "reload".equalsIgnoreCase(command[0])
> && "function".equalsIgnoreCase(command[1])) {
> //special handling for SQL "reload function"
> return null;
> }
> {code}
> However, this means the {{hive.security.command.whitelist}} doesn't work for
> the command. It's better to first do the privilege check and then the rest.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)