Details

      Description

      Regression introduced by LPS-57044.

      Issue: NPE in Workflow that auto-publishes when patched with the changes from LPS-57044.

      Steps to Reproduce:
      1. Navigate to Control Panel > Workflow and upload attached Workflow
      2. Navigate to Site Administration > Site Memberships > Site Users
      3. Assign the Site Administrator Role to the User you are logged in as
      4. Navigate to Site Administration > Content > Documents and Media Library
      5. Create a new Folder
      6. Select Actions > Edit on the Folder
      7. Set the Workflow on the Folder for Basic Documents
      8. Navigate to that Folder
      9. Upload a new Document

      Expected Result: The Document is automatically approved since Site Administrator submitted Documents should be as per the Workflow
      Actual Result: The Document is in the Pending state and the below error is in the logs:

      15:11:18,916 WARN  [liferay/workflow_status-1][ProxyMessageListener:81] com.liferay.portal.kernel.workflow.WorkflowException: java.lang.NullPointerException
      com.liferay.portal.kernel.workflow.WorkflowException: java.lang.NullPointerException
          at com.liferay.portal.workflow.WorkflowStatusManagerImpl.updateStatus(WorkflowStatusManagerImpl.java:41)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:606)
          at com.liferay.portal.kernel.messaging.proxy.ProxyRequest.execute(ProxyRequest.java:85)
          at com.liferay.portal.kernel.messaging.proxy.ProxyMessageListener.receive(ProxyMessageListener.java:51)
          at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
          at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:67)
          at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:682)
          at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:593)
          at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.NullPointerException
          at org.apache.catalina.connector.Request.notifyAttributeAssigned(Request.java:1555)
          at org.apache.catalina.connector.Request.setAttribute(Request.java:1546)
          at org.apache.catalina.connector.RequestFacade.setAttribute(RequestFacade.java:541)
          at javax.servlet.ServletRequestWrapper.setAttribute(ServletRequestWrapper.java:239)
          at javax.servlet.ServletRequestWrapper.setAttribute(ServletRequestWrapper.java:239)
          at com.liferay.portal.kernel.util.CookieKeys._getCookieMap(CookieKeys.java:292)
          at com.liferay.portal.kernel.util.CookieKeys._get(CookieKeys.java:248)
          at com.liferay.portal.kernel.util.CookieKeys.getCookie(CookieKeys.java:124)
          at com.liferay.portal.util.PortalInstances._getCompanyId(PortalInstances.java:173)
          at com.liferay.portal.util.PortalInstances.getCompanyId(PortalInstances.java:71)
          at com.liferay.portal.util.PortalImpl.getCompanyId(PortalImpl.java:1499)
          at com.liferay.portal.util.PortalUtil.getCompanyId(PortalUtil.java:368)
          at com.liferay.portlet.PortletURLImpl.getPortlet(PortletURLImpl.java:240)
          at com.liferay.portlet.PortletURLImpl.<init>(PortletURLImpl.java:109)
          at com.liferay.portlet.PortletURLFactoryImpl.create(PortletURLFactoryImpl.java:35)
          at com.liferay.portlet.PortletURLFactoryUtil.create(PortletURLFactoryUtil.java:33)
          at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl.getFileEntryURL(DLFileEntryLocalServiceImpl.java:2118)
          at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl.updateStatus(DLFileEntryLocalServiceImpl.java:1772)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:606)
          at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
          at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(Defau
      

      Reproduced in 6.2.x
      Could not test in Trunk since there is no Kaleo-Webs plugin

      6.2.x commit 56363fe4ce57c526ea6eba6fa4e03687c3b12143
      master commit 67618119d83f6f4b2a3b75ed48dd98fe974c01f8

      6.2.x plugins commit 0ef5aacbafb0920cdd90a1583b0b7028d6f31152
      Master Plugins commit 5856ba212c8fca16e4b524e1b79ea3684ac36eaa

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mark.jin Mark Jin (Inactive)
                Reporter:
                christopher.kian Christopher Kian
                Participants of an Issue:
                Recent user:
                Jonathan McCann
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  6.2.X EE