-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.0.0 DXP SP3, 7.0.0 DXP FP22, 7.0.X EE, Master
-
Fix Version/s: 7.0.0 DXP FP26, 7.0.X EE, 7.0.4 CE GA5, 7.1.X, Master
-
Component/s: Workflow, ~ [Archived] Collaboration
-
Branch Version/s:7.0.x
-
Backported to Branch:Committed
-
Story Points:1
-
Fix Priority:3
-
Git Pull Request:
Description
When delete a pending document, the workflow task may not be deleted. This can result in having content being approved even though it's deleted content.
Steps to reproduce
- Setup DXP
- Start Liferay and login as default user(test@liferay.com)
- Goto "Content > Document and Media"
- Create a folder and set "Single approver" workflow to it
- Navigate to the folder created by step 4
- Add a document and "Submit for Publication"
- Goto "My Workflow Tasks > Assigned to My Roles" and confirm that there is a workflow task
- Goto "Content > Document and Media" and delete the document
- Goto "My Workflow Tasks > Assigned to My Roles" and confirm that there is no workflow task
- Repeat the steps 6 and 7
- Goto "My Workflow Tasks > Assigned to My Roles" and select "Assign to Me" for the task.
- Approve the task
- Goto "Content > Document and Media" and edit the document, "Submit for Publication" (the document version will be 1.1, status:pending)
- Goto "My Workflow Tasks > Assigned to My Roles" and confirm that there is a workflow task
- Move the document to recycle bin
- Goto "My Workflow Tasks > Assigned to My Roles" again
Actual result
The workflow task exist and is possible to approve/reject (with inconsistent results)
Expected result
The workflow task will be deleted Automatically as in step 8~9.