ActivitiUtil#createWorkflowSnapshotInstance assumes an assigned user exists in the database while this may not always be the case. Assuming a workflow task is assigned to a user or group that is then removed from the database through LDAP or other processes. This would result in a task that does have an assignee but querying for that user/group would return no results. A fix is needed to unassign the task if it is assigned to a deleted user/group or do not process those results.
Replicating
Create local user
Assign to workflow user
Delete local user
Confirm workflow reporting dashlet snapshot fetch is broken
Issue
ActivitiUtil#createWorkflowSnapshotInstance
assumes an assigned user exists in the database while this may not always be the case. Assuming a workflow task is assigned to a user or group that is then removed from the database through LDAP or other processes. This would result in a task that does have an assignee but querying for that user/group would return no results. A fix is needed to unassign the task if it is assigned to a deleted user/group or do not process those results.Replicating