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

NPE is thrown when clicking on Page Revision task under MyWorkflow task

    Details

      Description

      Reproduction steps:

      1. Log in as Admin user
      2. Enable local live staging with Page Versioning for Public Pages and all contents.
      3. Go to Configuration > Workflow and add Single Approved workflow to Page Revision
      4. Go to Site and add a Blogs portlet to the page
      5. Click "Submit for publication" for this page[Status converts to Pending]
      6. Go to "My Workflow Tasks" > Assigned to my Roles, and assign this task to yourself
      7. Go to "My Workflow Tasks" > Assigned to me, and click on the task.

      Actual result: NPE is thrown when clicking on page task:

      2020-08-27 02:25:16.588 ERROR [http-nio-8080-exec-10][IncludeTag:128] Current URL /web/site-name/manage?p_p_id=com_liferay_portal_workflow_task_web_portlet_MyWorkflowTaskPortlet&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&_com_liferay_portal_workflow_task_web_portlet_MyWorkflowTaskPortlet_mvcPath=%2Fedit_workflow_task.jsp&_com_liferay_portal_workflow_task_web_portlet_MyWorkflowTaskPortlet_backURL=http%3A%2F%2Flocalhost%3A8080%2Fweb%2Fsite-name%2Fmanage%3Fp_p_id%3Dcom_liferay_portal_workflow_task_web_portlet_MyWorkflowTaskPortlet%26p_p_lifecycle%3D0%26p_p_state%3Dnormal%26p_p_mode%3Dview&_com_liferay_portal_workflow_task_web_portlet_MyWorkflowTaskPortlet_workflowTaskId=36439 generates exception: java.lang.NullPointerException
      java.lang.NullPointerException
              at org.apache.jsp.asset_005fmetadata.metadata_005fentry_jsp._jspService(metadata_005fentry_jsp:257)
              at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
              at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
              at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
              at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
              at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspServlet.service(JspServlet.java:368)
              at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspServlet.service(JspServlet.java:380)
              at org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration.service(EndpointRegistration.java:153)
              at org.eclipse.equinox.http.servlet.internal.servlet.ResponseStateHandler.processRequest(ResponseStateHandler.java:62)
              at org.eclipse.equinox.http.servlet.internal.context.DispatchTargets.doDispatch(DispatchTargets.java:120)
              at org.eclipse.equinox.http.servlet.internal.servlet.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:48)
              at com.liferay.portal.servlet.DirectServletPathRegisterDispatcher.include(DirectServletPathRegisterDispatcher.java:67)
              at com.liferay.portal.servlet.DirectRequestDispatcherFactoryImpl$IndirectRequestDispatcher.include(DirectRequestDispatcherFactoryImpl.java:190)
              at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:79)
              at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
              at com.liferay.taglib.util.IncludeTag.includePage(IncludeTag.java:407)
              at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:383)
              at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:217)
      

      Expected result No NPE error is thrown.

        Attachments

          Activity

            People

            Assignee:
            joyce.wang Joyce Wang
            Reporter:
            joyce.wang Joyce Wang
            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:
              7 weeks, 5 days ago

                Packages

                Version Package
                7.3.X
                7.3.5 CE GA6
                7.3.10 DXP GA1
                Master