[ALF-18538] Incorrect role for user who is member of two groups Created: 02-Apr-13  Updated: 07-Sep-16  Resolved: 07-Sep-16

Status: Closed
Project: Alfresco
Component/s: Site Invitations
Affects Version/s: 4.2 Enterprise
Fix Version/s: 4.2.d Community
Security Level: external (External user)

Type: Bug Priority: Critical
Reporter: Alfresco QA Team (Inactive) Assignee: Closed Issues
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: 0 minutes
Time Spent: 4 hours
Original Estimate: Not Specified

Alfresco Enterprise v4.2.0 (r48616-b1379) RHEL 6.3 X64 MySQL 5.5 mysql-connector-java-5.1.17-bin.jar Tomcat 7.0.35 JDK 7 U13 Alfresco+ OpenLDAP 2.4.23 FF 19.0.2 Windows 7 X64

Issue Links:
duplicates MNT-2229 Wrong user role is displayed in site ... Closed
Testcase ID:


Date of First Response:


1.Log in Share as admin;
2.Create any Site and at least 2 groups (e.g. Alena1 and Alena2);
3.Create any user (e.g. lena1) and add the user to both groups;
4.Add both groups to the site with the following roles:
Alena1 -> Collaborator
Alena2 -> Consumer;
Go to the "Site Members" dashlet in Site's Dashboard;
Expected result: “Site Members" dashlet displays the user with the higher permission that is "Collaborator".
Actual result: “Site Members" dashlet displays the user with “Consumer” role.
Note: all works correct, if the name of group begins with “group”( e. g. “group1” )

Comment by Alfresco QA Team (Inactive) [ 30-Oct-13 ]

The issue is reproduced on Alfresco Enterprise v4.2.0 (r57217-b28) schema 6034- OOTB; RHEL 6.4x. Client: Win7x64, FF 24.0.

Comment by Neil McErlean [X] (Inactive) [ 04-Nov-13 ]

I have a fix in the works for MNT-2229 which will fix this issue too.

Comment by Florent Angebault (Inactive) [ 21-Nov-13 ]


Please note that this bug also exists in Alfresco community v4.0.d.
Here is our patch for v4.0.d.

diff -u projects/repository/source/java/org/alfresco/repo/site/SiteServiceImpl.java projects/repository/source/java/org/alfresco/repo/site/SiteServiceImpl.java
— projects/repository/source/java/org/alfresco/repo/site/SiteServiceImpl.java Mon Oct 07 10:38:12 2013 +0200
+++ projects/repository/source/java/org/alfresco/repo/site/SiteServiceImpl.java Mon Oct 07 10:34:40 2013 +0200
@@ -24,6 +24,7 @@
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
+import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
@@ -1508,7 +1509,7 @@

QName siteType = directNodeService.getType(siteNodeRef);
Set<String> permissions = this.permissionService.getSettablePermissions(siteType);

  • Map<String, String> groupsToExpand = new HashMap<String, String>(32);
    + Map<String, String> groupsToExpand = new LinkedHashMap<String, String>(32);

AUTHORITY_FIND: for (String permission : permissions)


Comment by Richard Esplin [X] (Inactive) [ 07-Sep-16 ]

This issue was raised internally against an old version of Alfresco, and has not progressed in three years.

In order to focus on the most important tasks, we are closing these old issues.

If you know that this issue affects recent versions of Alfresco Community Edition, and you feel that it still needs to be addressed, please reopen it so that we can triage it alongside new issues.

Generated at Sat Mar 06 23:54:58 GMT 2021 using Jira 7.13.15#713015-sha1:7c5ddd2c3e1709974ae9c48c17df8edd3919fe2c.