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

Unable to withdraw a workflow submission whose creator is removed

    Details

      Description

      Issue:
      Unable to withdraw a workflow submission whose creator is removed. In trunk, there is no Submissions for workflow in control panel. So it is unable to test trunk for this issue.

      Steps to reproduce:

      1. Start up bundle and deploy Kaleo-web portlet.
      2. Create a site name it Staging Site,
      3. Create a site name it Live Site,
      4. In Staging Site, navigate to Admin--> Configuration --> Workflow Configuration
      5. Select Single Approver workflow for option "Page Revision"
      6. Establish the staging/live publishing relationship between Staging Site and Live Site with page versioning enabled.
      7. Create new user Person 1. Assign him with membership for Staging Site and Live Site.
      8. Assign Site Administrator role for Person 1 .
      9. In Staging site create a page name it "Page 1"
      10. Open Chrome and Firefox. Person 1 signed in from Chrome and Admin sign in from Firefox
      11. Person 1 add Navigation Portlet to Page 1 and submit page for approval
      12. Admin once received the notification, assign the task to himself and Reject it.
      13. Admin navigate to Site Configuration -->Workflow Configuration --> Page Revision and choose "No Workflow"
      14. Admin deletes Person 1.
      15. Admin goes to control panel --> configuration --> workflow -->Submissions --> Pending.
      16. Click on the previous submission and try to withdraw it .

      Expected result:
      Be able to withdraw the submission.

      Actual result:
      The JSP not render with following errors:

      09:08:12,483 ERROR [http-bio-8088-exec-4][IncludeTag:129] Current URL /group/control_panel/manage?p_p_id=151&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&refererPlid=20716&controlPanelCategory=configuration&_151_workflowInstanceId=20792&_151_redirect=http%3A%2F%2Flocalhost%3A8088%2Fgroup%2Fcontrol_panel%2Fmanage%3Fp_p_id%3D151%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_p_mode%3Dview%26refererPlid%3D20716%26controlPanelCategory%3Dconfiguration%26_151_tabs1%3Dsubmissions&_151_struts_action=%2Fworkflow_definitions%2Fedit_workflow_instance generates exception: com.liferay.portal.NoSuchUserException: No User exists with the primary key 20765
      com.liferay.portal.NoSuchUserException: No User exists with the primary key 20765
      	at com.liferay.portal.service.persistence.UserPersistenceImpl.findByPrimaryKey(UserPersistenceImpl.java:7199)
      	at com.liferay.portal.service.persistence.UserPersistenceImpl.findByPrimaryKey(UserPersistenceImpl.java:7217)
      	at com.liferay.portal.service.impl.UserLocalServiceImpl.getUserById(UserLocalServiceImpl.java:2720)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
      	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      	at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
      	at com.liferay.portal.service.UserLocalServiceUtil.getUserById(UserLocalServiceUtil.java:2148)
      	at com.liferay.portal.asset.LayoutRevisionAssetRendererFactory.getAssetEntry(LayoutRevisionAssetRendererFactory.java:60)
      	at org.apache.jsp.html.portlet.workflow_005finstances.edit_005fworkflow_005finstance_jsp._jspService(edit_005fworkflow_005finstance_jsp.java:689)
      	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      	at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:57)
      	at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:78)
      	at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
      	at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:295)
      	at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:192)
      	at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:83)
      	at org.apache.jsp.html.common.themes.portlet_jsp._jspService(portlet_jsp.java:3815)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ian.song Ian Song (Inactive)
              Reporter:
              john.zhao John Zhao (Inactive)
              Participants of an Issue:
              Recent user:
              Rodrigo Cunha
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 4 weeks, 3 days ago

                  Packages

                  Version Package
                  6.2.X EE