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

Deployed apps undeploy when admin user removed from group to which candidate task is assigned

    Details

    • Bug Priority:
      Category 2
    • ACT Numbers:

      00903960

      Description

      Description
      Deployed apps undeploy when admin user removed from group to which candidate task is assigned

      Supporting evidence

      Steps to reproduce
      1. Create a group (Group A) that includes the admin user.
      2. Design a process which contains a user task assigned to a candidate group (assign the task to Group A)
      3. Publish the process as part of an app as the admin user.
      4. Note that the App appears on the admin user landing page  
      5. Remove the admin user from Group A through Identity Management / Organization
      6. Inspect the landing page and loom out for the app that was there in step 4

      Expected Behaviour
      The app should still be deployed even if the user is removed from the group that the Task is assigned to.

      Observed Behaviour
      The App disappears from admin user home page and also the entry is deleted from the RUNTIME_APP database table

      Additional Info
      Likley cause is in the code, here:
      https://github.com/Alfresco/activiti-bpm-suite/blob/26f558c35cf7eb86752a6492e2ea036c09d199db/activiti-bpm-suite/activiti-app-logic/src/main/java/com/activiti/service/idm/AlfrescoIdmGroupService.java#L255

      
          public void deleteGroupMember(Long groupId, Long userId) {
          	verifySecurityForGroupMember(groupId, userId);
          	Group group = groupService.getGroup(groupId, false, false, false, false);
          	User user = userService.getUser(userId, false);
          	groupService.deleteUserFromGroup(group, user);
      
              // COULD BE THE PROBLEMATIC CALL TO REMOVE RUNTIME APPS
      		removeUnentitledRuntimeApps(groupId, user);
      }
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                djohnson Doug Johnson
                Reporter:
                dkitsantonis Despina Kitsantonis [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: