-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/53967/
-----------------------------------------------------------
(Updated Dec. 27, 2016, 9:51 p.m.)
Review request for ranger.
Changes
-------
Instead of throwing an exception, add the UPDATE privilege mapped from
INSERT/DELETE
Bugs: Ranger-1210
https://issues.apache.org/jira/browse/Ranger-1210
Repository: ranger
Description
-------
beeline>grant insert on test10 to user userx;
returns OK.
But actually the hive log has a warning entry:
grant/revoke: unexpected privilege type 'DELETE'. Ignored
The policy is actually created but with no policy items. While the "UPDATE"
grant properly sets up the policy item.
According to
https://cwiki.apache.org/confluence/display/RANGER/Hive+Commands+to+Ranger+Permission+Mapping
Both INSERT and DELETE should be mapped to UPDATE.
What user experiences is that the grant of INSERT/DELETE has no effect at all
even the return status is good.
So we should throw an exception with an informational message about the
INSERR/DELET=>UPDATE mapping.
Diffs (updated)
-----
hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAuthorizer.java
fa1ea02
Diff: https://reviews.apache.org/r/53967/diff/
Testing
-------
Manual tests ok.
Thanks,
Yan Zhou