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

Cannot display web content if nested field in structure is named "name"

Details

    • 4
    • Forms_7.3_6

    Description

      Reproducing steps

      1. Create a new web content structure consisting of a text field nested inside another text field.
      2. Rename the inside text field to the string "name".
      3. Create an associated template with the xml: <h1>Here is some web content</h1>.
      4. Create a new web content for that structure.
      5. Add a Web Content Display to a page.
      6. Select the web content we created and save.
        Expected: The web content is shown according to the template we chose.
        Observed: Nothing is shown.

      For all versions (from master down to 7.0.X), the observed behavior is that nothing is shown. For 7.1.X and 7.0.X, however, we also get an error message in the logs:

      2019-07-08 08:40:23.356 ERROR [http-nio-9090-exec-3][IncludeTag:128] Current URL /web/guest/home?p_p_id=com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet&p_p_lifecycle=0&p_p_state=pop_up&p_p_mode=view&_com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet_javax.portlet.action=editConfiguration&_com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet_mvcPath=%2Fedit_configuration.jsp&_com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet_returnToFullPageURL=%2Fweb%2Fguest&_com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet_portletConfiguration=true&_com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet_portletResource=com_liferay_journal_content_web_portlet_JournalContentPortlet_INSTANCE_5O7sjPGifdzq&_com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet_previewWidth=&_com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet_settingsScope=portletInstance&_com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet_articleResourcePrimKey=38389 generates exception: java.lang.NullPointerException
      java.lang.NullPointerException
      	at org.apache.jsp.journal_005ftemplate_jsp._jspService(journal_005ftemplate_jsp:305)
      	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:319)
      	at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspServlet.service(JspServlet.java:330)
      	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:202)
      	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:393)
      	at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:370)
      	at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:215)
      

      Attachments

        1. issue.PNG
          issue.PNG
          39 kB
        2. issue2.PNG
          issue2.PNG
          29 kB
        3. Screenshot.png
          Screenshot.png
          60 kB

        Issue Links

          Activity

            People

              chao.wang Chao Wang
              ricardo.couso Ricardo Couso
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                2 years, 27 weeks, 4 days ago

                Packages

                  Version Package
                  7.0.X
                  7.1.X
                  7.2.X
                  Master