natural commented on a change in pull request #3637: NIFI-6400 Better options,
consistent ids for ShellUserGroupProvider.
URL: https://github.com/apache/nifi/pull/3637#discussion_r318110745
##########
File path:
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-shell-authorizer/src/main/java/org/apache/nifi/authorization/ShellUserGroupProvider.java
##########
@@ -525,26 +549,29 @@ private void reconcilePrimaryGroups(Map<String, User>
uidToUser, Map<String, Gro
if (primaryGroup == null) {
logger.warn("user: " + primaryUser + " primary group not
found");
- } else {
+ } else if
(!excludeGroups.matcher(primaryGroup.getName()).matches()) {
Set<String> groupUsers = primaryGroup.getUsers();
if (!groupUsers.contains(primaryUser.getIdentity())) {
Set<String> secondSet = new HashSet<>(groupUsers);
secondSet.add(primaryUser.getIdentity());
- Group group = new
Group.Builder().name(primaryGroup.getName()).identifier(primaryGid).addUsers(secondSet).build();
- gidToGroup.put(primaryGid, group);
+ String groupIdentifier = getNameBasedUUID(primaryGid);
Review comment:
Yes -- updated.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services