Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-73480

When delete a pending document, the workflow task may not be deleted.

    Details

      Description

      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

      1. Setup DXP
      2. Start Liferay and login as default user(test@liferay.com)
      3. Goto "Content > Document and Media"
      4. Create a folder and set "Single approver" workflow to it
      5. Navigate to the folder created by step 4
      6. Add a document and "Submit for Publication"
      7. Goto "My Workflow Tasks > Assigned to My Roles" and confirm that there is a workflow task
      8. Goto "Content > Document and Media" and delete the document
      9. Goto "My Workflow Tasks > Assigned to My Roles" and confirm that there is no workflow task
      10. Repeat the steps 6 and 7
      11. Goto "My Workflow Tasks > Assigned to My Roles" and select "Assign to Me" for the task.
      12. Approve the task
      13. Goto "Content > Document and Media" and edit the document, "Submit for Publication" (the document version will be 1.1, status:pending)
      14. Goto "My Workflow Tasks > Assigned to My Roles" and confirm that there is a workflow task
      15. Move the document to recycle bin
      16. 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.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 49 weeks ago

                Packages

                Version Package
                7.0.0 DXP FP26
                7.0.X EE
                7.0.4 CE GA5
                7.1.X
                Master