hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jimmy Xiang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-15252) hive.security.command.whitelist doesn't work for 'reload function'
Date Mon, 21 Nov 2016 23:32:58 GMT

    [ https://issues.apache.org/jira/browse/HIVE-15252?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15685097#comment-15685097
] 

Jimmy Xiang commented on HIVE-15252:
------------------------------------

+1

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

Mime
View raw message