This is an automated email from the ASF dual-hosted git repository.
spolavarapu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ranger.git
The following commit(s) were added to refs/heads/master by this push:
new a12ed57 RANGER-3143: Fixed issue while retrieving groups with no
memberships from Unix sysc source
a12ed57 is described below
commit a12ed5746c0c9632193d7e20ba501cdff3bbb327
Author: Sailaja Polavarapu <[email protected]>
AuthorDate: Thu Jun 3 13:30:44 2021 -0700
RANGER-3143: Fixed issue while retrieving groups with no memberships from
Unix sysc source
---
.../org/apache/ranger/unixusersync/process/UnixUserGroupBuilder.java | 2 ++
1 file changed, 2 insertions(+)
diff --git
a/ugsync/src/main/java/org/apache/ranger/unixusersync/process/UnixUserGroupBuilder.java
b/ugsync/src/main/java/org/apache/ranger/unixusersync/process/UnixUserGroupBuilder.java
index b33812e..4d12def 100644
---
a/ugsync/src/main/java/org/apache/ranger/unixusersync/process/UnixUserGroupBuilder.java
+++
b/ugsync/src/main/java/org/apache/ranger/unixusersync/process/UnixUserGroupBuilder.java
@@ -473,6 +473,8 @@ public class UnixUserGroupBuilder implements
UserGroupSource {
for (String user : groupMembers.split(",")) {
groupUserTable.put(groupName, user, groupId);
}
+ } else {
+ sourceGroupUsers.put(groupName, new HashSet<String>());
}
}