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

Web Content Structure Editor - WCS with 'image' field will throw error in Edit Default Values

    Details

    • Fix Priority:
      4

      Description

      Steps to reproduce:

      1. Go to > Control Panel > Web Content
      2. Add a Structure 'Image' (drag and drop a text field and an image field) > Save
      3. Close the Structures iframe, reopen it (Manage > Structures)
      4. Click Actions > Edit Default Values next to 'Image'

      Expected: Iframe opening with no errors

      Actual: The Edit Default Values iframe (Structures - Structure Default Values) will open, but console will throw the following error:

      17:54:35,855 ERROR [http-bio-8080-exec-3][IncludeTag:205] Current URL /group/control_panel/manage?p_p_auth=J9AmurJL&p_p_id=15&p_p_lifecycle=0&p_p_state=pop_up&p_p_mode=view&doAsGroupId=10179&controlPanelCategory=portlet_166&_15_groupId=10179&_15_classNameId=10098&_15_structureId=10773&_15_classPK=10
      774&_15_redirect=http%3A%2F%2Flocalhost%3A8080%2Fgroup%2Fcontrol_panel%2Fmanage%3Fp_p_id%3D166%26p_p_lifecycle%3D0%26p_p_state%3Dpop_up%26p_p_mode%3Dview%26doAsGroupId%3D10179%26controlPanelCategory%3Dportlet_166%26_166_ddmResource%3Dcom.liferay.portlet.journal%26_166_saveCallback%3D%26_166_scopeStr
      uctureType%3Dcom.liferay.portlet.journal.model.JournalArticle%26_166_templateHeaderTitle%3D%26_166_scopeAvailableFields%3DLiferay.FormBuilder.AVAILABLE_FIELDS.WCM_STRUCTURE%26_166_scopeTemplateType%3Ddisplay%26_166_ddmResourceActionId%3DADD_TEMPLATE%26_166_chooseCallback%3D%26_166_scopeTemplateMode%
      3D%26_166_showManageTemplates%3Dtrue%26_166_scopeTitle%3DStructures%26_166_scopeStructureName%3Dstructure%26_166_scopeStorageType%3Dxml%26_166_showGlobalScope%3Dfalse%26_166_refererPortletName%3D15%26_166_classNameId%3D%26_166_templateId%3D%26_166_groupId%3D%26_166_classPK%3D%26_166_struts_action%3D
      %252Fdynamic_data_mapping%252Fview%26_166_doAsGroupId%3D10179&_15_struts_action=%2Fjournal%2Fedit_article&_15_backURL=http%3A%2F%2Flocalhost%3A8080%2Fgroup%2Fcontrol_panel%2Fmanage%3Fp_p_id%3D166%26p_p_lifecycle%3D0%26p_p_state%3Dpop_up%26p_p_mode%3Dview%26doAsGroupId%3D10179%26controlPanelCategory%
      3Dportlet_166%26_166_ddmResource%3Dcom.liferay.portlet.journal%26_166_saveCallback%3D%26_166_scopeStructureType%3Dcom.liferay.portlet.journal.model.JournalArticle%26_166_templateHeaderTitle%3D%26_166_scopeAvailableFields%3DLiferay.FormBuilder.AVAILABLE_FIELDS.WCM_STRUCTURE%26_166_scopeTemplateType%3
      Ddisplay%26_166_ddmResourceActionId%3DADD_TEMPLATE%26_166_chooseCallback%3D%26_166_scopeTemplateMode%3D%26_166_showManageTemplates%3Dtrue%26_166_scopeTitle%3DStructures%26_166_scopeStructureName%3Dstructure%26_166_scopeStorageType%3Dxml%26_166_showGlobalScope%3Dfalse%26_166_refererPortletName%3D15%2
      6_166_classNameId%3D%26_166_templateId%3D%26_166_groupId%3D%26_166_classPK%3D%26_166_struts_action%3D%252Fdynamic_data_mapping%252Fview%26_166_doAsGroupId%3D10179 generates exception: null
      17:54:35,858 ERROR [http-bio-8080-exec-3][IncludeTag:154] java.lang.NullPointerException
              at com.liferay.portlet.journal.service.impl.JournalArticleLocalServiceImpl.getDisplayArticle(JournalArticleLocalServiceImpl.java:1444)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:122)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:80)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
              at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:162)
              at com.liferay.portlet.journal.service.JournalArticleLocalServiceUtil.getDisplayArticle(JournalArticleLocalServiceUtil.java:741)
              at com.liferay.portlet.journal.asset.JournalArticleAssetRendererFactory.getAssetRenderer(JournalArticleAssetRendererFactory.java:83)
              at com.liferay.portlet.asset.model.BaseAssetRendererFactory.getAssetRenderer(BaseAssetRendererFactory.java:57)
              at org.apache.jsp.html.portlet.journal.article.display_005fpage_jsp._jspService(display_005fpage_jsp.java:1763)
              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:55)
              at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:295)
              at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:199)
              at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:81)
              at org.apache.jsp.html.taglib.ui.form_005fnavigator.page_jsp._jspService(page_jsp.java:573)
              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:55)
              at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:295)
      
      
      

      The same problem seen in LPS-33149 occurs when trying to save modified values in this iframe

        Attachments

          Activity

            People

            Assignee:
            brian.wulbern Brian Wulbern
            Reporter:
            brian.wulbern Brian Wulbern
            Participants of an Issue:
            Recent user:
            Marta Elicegui
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

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

                Packages

                Version Package
                6.2.0 CE M5