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

Bug in Liferay Portal 6.2 causes NullPointerException in DXP

    Details

      Description

      Steps to reproduce (clean bundle):

      1. Start a clean instance of Liferay Portal 6.2;
      2. Go to the Site's Content > Dynamic Data Lists;
      3. Click on Manage Data Definitions;
      4. Click to add a new Data Definition;
      5. Set a name to that Definition (required), add a Link to Page field and any other field;
      6. Click on the Link to Page field, change its name to "page" and save the Definition;
      7. Click to Add a new Dynamic Data List;
      8. Set a name to the list (required), select the Data Definition just created and save the DDL;
      9. Enter the DDL just created, add a new Definition to it;
      10. Publish the Definition;
      11. Go back to manage the Data Definitions and click to edit the created Definition;
      12. Remove the Link to Page field and save the Definition;
      13. Enter the DDL just created;
      14. Click to edit the previously created Definition;
      15. Click to view history;
      16. Click on Actions of the version 1.0 and click on Revert;
      17. Go back once again to manage the Data Definitions and click to edit the created Definition;
      18. Insert a Link to Page field, click on it, change its name to "page" and save the Definition;
      19. Stop the Portal;
      20. Run the upgrade tool on DXP 7.2;
      21. After conclusion, start the 7.2 instance;
      22. Go to Site's Content & Data > Dynamic Data Lists;
      23. Enter the DDL.

      Expected result:
      The list of definitions is successfully rendered in the page.

      Actual result:
      NullPointerException is thrown in the app server's console and no list of definitions is shown on the browser:

      2020-03-20 16:19:50.503 ERROR [http-nio-8080-exec-5][IncludeTag:128] Current URL /group/pacifico-corporativo//control_panel/manage?p_p_id=com_liferay_dynamic_data_lists_web_portlet_DDLPortlet&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&_com_liferay_dynamic_data_lists_web_portlet_DDLPortlet_redirect=http%3A%2F%2Flocalhost%3A8080%2Fgroup%2Fpacifico-corporativo%2F%2Fcontrol_panel%2Fmanage%3Fp_p_id%3Dcom_liferay_dynamic_data_lists_web_portlet_DDLPortlet%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_p_mode%3Dview%26_com_liferay_dynamic_data_lists_web_portlet_DDLPortlet_mvcPath%3D%252Fview.jsp%26_com_liferay_dynamic_data_lists_web_portlet_DDLPortlet_orderByCol%3Dmodified-date%26_com_liferay_dynamic_data_lists_web_portlet_DDLPortlet_orderByType%3Dasc%26_com_liferay_dynamic_data_lists_web_portlet_DDLPortlet_displayStyle%3Dlist%26_com_liferay_dynamic_data_lists_web_portlet_DDLPortlet_cur%3D1%26_com_liferay_dynamic_data_lists_web_portlet_DDLPortlet_delta%3D20%26_com_liferay_dynamic_data_lists_web_portlet_DDLPortlet_description%3D%26_com_liferay_dynamic_data_lists_web_portlet_DDLPortlet_name%3D%26p_p_auth%3Dj6ln3kdn&_com_liferay_dynamic_data_lists_web_portlet_DDLPortlet_displayStyle=list&_com_liferay_dynamic_data_lists_web_portlet_DDLPortlet_mvcPath=%2Fview_record_set.jsp&_com_liferay_dynamic_data_lists_web_portlet_DDLPortlet_recordSetId=29819&p_p_auth=j6ln3kdn generates exception: java.lang.NullPointerException
       java.lang.NullPointerException
       at com.liferay.dynamic.data.mapping.internal.render.LinkToPageDDMFormFieldValueRenderer$1.get(LinkToPageDDMFormFieldValueRenderer.java:55)
       at com.liferay.dynamic.data.mapping.internal.render.LinkToPageDDMFormFieldValueRenderer$1.get(LinkToPageDDMFormFieldValueRenderer.java:48)
       at com.liferay.portal.kernel.util.ListUtil.toString(ListUtil.java:703)
       at com.liferay.dynamic.data.mapping.render.BaseDDMFormFieldValueRenderer.render(BaseDDMFormFieldValueRenderer.java:43)
       at org.apache.jsp.view_005frecords_jsp._jspService(view_005frecords_jsp.java:508)
       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:373)
       at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspServlet.service(JspServlet.java:385)
       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:201)
       at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:79)
      

        Attachments

          Activity

            People

            • Assignee:
              harry.chai Harry Chai
              Reporter:
              rodrigo.paulino Rodrigo Paulino
              Participants of an Issue:
              Recent user:
              Clarissa Velazquez
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                14 weeks, 6 days ago

                Packages

                Version Package
                7.0.X
                7.1.10 DXP FP18
                7.1.X
                7.2.X
                Master