Wilfred Spiegelenburg created SENTRY-2021:
---------------------------------------------
Summary: MR session ACLs in Hive binding does not handle all types
of ACLs
Key: SENTRY-2021
URL: https://issues.apache.org/jira/browse/SENTRY-2021
Project: Sentry
Issue Type: Bug
Components: Hive Binding
Affects Versions: 1.8.0
Reporter: Wilfred Spiegelenburg
When an ACL is configured to only have groups and no users the ACL starts with
a space.
The ACL that is read from the config currently gets trimmed which removes the
space and thus converts the groups into users.
We should not trim the space from the ACL and merge the user name correctly:
- if the ACL starts with a space just add the username to the start
- if the ACL does not start with a space add the username separated by a comma
The change was introduced by SENTRY-158.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)