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

Upgrade errors if a user who creates a workflow definition is deleted (DXP-specific)

    Details

      Description

      Steps to Reproduce

      1. Start up Liferay 6.2
      2. Create a new user and grant the Administrator role to the user
      3. Sign in as the new user
      4. Navigate to Control Panel > Workflow
      5. Edit the Single Approver workflow and rename it to Edited Single Approval
      6. Sign out and sign back in as the omni-admin
      7. Delete the user
      8. Shutdown the server
      9. Run the upgrade tool

      Expected behavior is the upgrade doesn't raise any errors.

      Actual behavior is you receive exceptions about being unable to find the deleted user.

      Caused by: com.liferay.portal.kernel.exception.NoSuchUserException: No User exists with the primary key 26436
      	at com.liferay.portal.service.persistence.impl.UserPersistenceImpl.findByPrimaryKey(UserPersistenceImpl.java:8418)
      	at com.liferay.portal.service.persistence.impl.UserPersistenceImpl.findByPrimaryKey(UserPersistenceImpl.java:8434)
      	at com.liferay.portal.service.base.UserLocalServiceBaseImpl.getUser(UserLocalServiceBaseImpl.java:299)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:158)
      	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:54)
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:58)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:135)
      	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:135)
      	at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:145)
      	at com.sun.proxy.$Proxy106.getUser(Unknown Source)
      	at com.liferay.portal.workflow.kaleo.service.impl.KaleoDefinitionVersionLocalServiceImpl.addKaleoDefinitionVersion(KaleoDefinitionVersionLocalServiceImpl.java:60)
      

        Attachments

          Activity

            People

            • Assignee:
              victor.ware Victor Ware
              Reporter:
              minhchau.dang Minhchau Dang
              Participants of an Issue:
              Recent user:
              Enterprise Release HU
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 48 weeks ago

                Packages

                Version Package
                7.1.X
                7.2.X
                Master