You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Chao Sun (JIRA)" <ji...@apache.org> on 2016/11/21 22:45:58 UTC
[jira] [Created] (HIVE-15252) hive.security.command.whitelist
doesn't work for 'reload function'
Chao Sun created HIVE-15252:
-------------------------------
Summary: 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
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)