This is an automated email from the ASF dual-hosted git repository.

madhan pushed a commit to branch ranger-2.8
in repository https://gitbox.apache.org/repos/asf/ranger.git


The following commit(s) were added to refs/heads/ranger-2.8 by this push:
     new 6800e9cad RANGER-5461: fix to set deleted groups status as HIDDEN 
(#822)
6800e9cad is described below

commit 6800e9cade00dabb289ed69e10ffb293a7e11f78
Author: hayden <[email protected]>
AuthorDate: Wed Jan 28 14:37:19 2026 +0900

    RANGER-5461: fix to set deleted groups status as HIDDEN (#822)
    
    (cherry picked from commit 3097751f1dffb10cd32ab0542aad30d5a68571bc)
---
 .../apache/ranger/unixusersync/process/PolicyMgrUserGroupBuilder.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/ugsync/src/main/java/org/apache/ranger/unixusersync/process/PolicyMgrUserGroupBuilder.java
 
b/ugsync/src/main/java/org/apache/ranger/unixusersync/process/PolicyMgrUserGroupBuilder.java
index 5746d793e..bd2fc998a 100644
--- 
a/ugsync/src/main/java/org/apache/ranger/unixusersync/process/PolicyMgrUserGroupBuilder.java
+++ 
b/ugsync/src/main/java/org/apache/ranger/unixusersync/process/PolicyMgrUserGroupBuilder.java
@@ -1730,7 +1730,7 @@ private void computeDeletedGroups(Map<String, Map<String, 
String>> sourceGroups)
                        if (StringUtils.isNotEmpty(groupDN) && 
!sourceGroups.containsKey(groupDN)
                                        && 
StringUtils.equalsIgnoreCase(groupOtherAttrs.get(UgsyncCommonConstants.SYNC_SOURCE),
 currentSyncSource)
                                        && 
StringUtils.equalsIgnoreCase(groupOtherAttrs.get(UgsyncCommonConstants.LDAP_URL),
 ldapUrl)) {
-                               if (ISHIDDEN.equals(groupInfo.getIsVisible())) {
+                               if (!ISHIDDEN.equals(groupInfo.getIsVisible())) 
{
                                groupInfo.setIsVisible(ISHIDDEN);
                                deletedGroups.put(groupInfo.getName(), 
groupInfo);
                                } else {

Reply via email to