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

Publishing Web Content with a File Upload Causes NPE

    Details

    • Fix Priority:
      5

      Description

      Steps to Reproduce:

      1. Add a structure with a file upload field
      2. Add a template based on the structure
      3. Create a web content based on the structure
        • Choose a file to upload

      When publishing, notice the following NPE:

      17:44:29,304 ERROR [http-bio-8080-exec-3][render_portlet_jsp:154] java.lang.NullPointerException
              at com.liferay.portlet.dynamicdatamapping.util.DDMImpl.getFields(DDMImpl.java:115)
              at com.liferay.portlet.dynamicdatamapping.util.DDMImpl.getFields(DDMImpl.java:91)
              at com.liferay.portlet.dynamicdatamapping.util.DDMImpl.getFields(DDMImpl.java:130)
              at com.liferay.portlet.dynamicdatamapping.util.DDMUtil.getFields(DDMUtil.java:62)
              at com.liferay.portlet.journal.action.EditArticleAction.updateArticle(EditArticleAction.java:556)
              at com.liferay.portlet.journal.action.EditArticleAction.processAction(EditArticleAction.java:140)
              at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:171)
              at com.liferay.portlet.StrutsPortlet.processAction(StrutsPortlet.java:214)
              at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:70)
              at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48)
              at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:554)
              at com.liferay.portlet.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:585)
              at com.liferay.portlet.InvokerPortletImpl.processAction(InvokerPortletImpl.java:295)
              at com.liferay.portlet.PortletContainerImpl._doProcessAction(PortletContainerImpl.java:517)
              at com.liferay.portlet.PortletContainerImpl.processAction(PortletContainerImpl.java:115)
              at com.liferay.portlet.RestrictPortletContainerWrapper.processAction(RestrictPortletContainerWrapper.java:73)
              at com.liferay.portal.kernel.portlet.PortletContainerUtil.processAction(PortletContainerUtil.java:114)
              at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:356)
              at com.liferay.portal.action.LayoutAction.doExecute(LayoutAction.java:179)
              at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:81)
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  7 years, 15 weeks, 1 day ago

                  Packages

                  Version Package
                  6.2.0 CE M3