Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-13710

User cannot change site role if its current role contains an underscore

    Details

      Description

      If you have a custom site role that contains an underscore, any user with this role will not be able to move to another role.

      It seems to be because the group name of the site, created for this role, gets truncated.

      For example, a user with the role name "test_customrole" in site "test-site", will be part a group called "site_test-site_test_customrole".
      However, when trying to change the role of the user, the following message will appear in the logs :

      org.alfresco.repo.security.authority.UnknownAuthorityException: 02250024 An authority was not found for GROUP_site_test-site_customrole
      

      Where it should actually be looking for an authority called GROUP_site_test-site_test_customrole

      This was reproduced in 4.2.1 and 4.2.4.6

      Steps to reproduce :
      1. Put the attached sitePermissionDefinitions.xml file in webapps/alfresco/WEB-INF/classes/alfresco/model/ replace it with the existing one.
      2. Start the server, login with admin and create a site "test-site"
      3. Invite a user ( test-user) to the site and give it the test_customrole role
      4. Login as the user and accept the invitation.
      5. Log back as admin and go to the Site-Members page of the test-site
      6. Change the role of the user from test_customrole to any other role

      Actual result :
      Error message is displayed : Failed to change role for user test-user
      In the logs, the following is displayed

      org.alfresco.repo.security.authority.UnknownAuthorityException: 02250024 An authority was not found for GROUP_site_test-site_customrole
      

      Expected result :
      The role of the user is changed successfully.

        Attachments

          Structure

            Activity

              People

              • Assignee:
                closedbugs Closed Bugs (Inactive)
                Reporter:
                jmesurolle Julien Mesurolle [X] (Inactive)
              • Votes:
                1 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 days, 4 hours
                  3d 4h

                    Structure Helper Panel