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)