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

If Portal Content Reviewer deletes the version of the content she is reviewing, exception is thrown

    Details

    • Branch Version/s:
      6.0.x
    • Backported to Branch:
      Committed

      Description

      1. User a creates a web content and presses "Submit for Publication"
      2. User b (having "Portal Content Reviewer" role) clicks on My Workflow Tasks and sees a review task on the new content. Assigns this task to herself. The task now appears in the "assigned to me" list.
      3. User b clicks on the task and then a review page appears where user b can approve, reject and edit the content
      4, User b presses the "Edit" button make changes to the web content and save them. In addition, b can also "delete version".
      5. User b deletes version of the web content. The web content is sucessfully deleted, but the interface shows "Unexpected error" and there is an exception:

      17:27:05,037 ERROR [ProxyMessageListener:79] com.liferay.portal.kernel.workflow.WorkflowException: com.liferay.portal.workflow.kaleo.NoSuchTaskInstanceTokenException: No KaleoTaskInstanceToken exists with the primary key 11572
      com.liferay.portal.kernel.workflow.WorkflowException: com.liferay.portal.workflow.kaleo.NoSuchTaskInstanceTokenException: No KaleoTaskInstanceToken exists with the primary key 11572
      at com.liferay.portal.workflow.kaleo.WorkflowTaskManagerImpl.getWorkflowTask(WorkflowTaskManagerImpl.java:196)

      Checking DB, the web content is deleted and also gets deleted the tuple in table kaleoinstancetoken which refers to the "review" task for that content.

      The error comes up because we tried to get the workflow status of a deleted web content. Right now, when a web content is deleted, we also remove the associated workflow elements.

      The author should be the one that's deleting which would withdraw from the workflow.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              daniel.sanz Daniel Sanz
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                10 years, 38 weeks, 1 day ago

                  Packages

                  Version Package
                  --Sprint - SP
                  6.1.0 CE RC1