Details

      Description

      Step to reproduce:

      1. Copy the following config file to osgi/configs
      2. Add a custom master
      3. Add a Language Selector to master page
      4. Publish Master
      5. Click the ellipsis button of custom master
      6. Click Export action

      Expected Results:
      The export should succeed.

      Actual Results:
      The page redirect to a wrong URL and the following NPE is thrown in log console:

      2020-05-14 04:52:47.497 ERROR [http-nio-8080-exec-6][PortletServlet:119] javax.portlet.PortletException: javax.portlet.PortletException: javax.portlet.PortletException: java.lang.NullPointerException
      javax.portlet.PortletException: javax.portlet.PortletException: javax.portlet.PortletException: java.lang.NullPointerException
              at com.liferay.layout.page.template.admin.web.internal.portlet.action.ExportMasterLayoutsMVCResourceCommand.serveResource(ExportMasterLayoutsMVCResourceCommand.java:135)
              at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.callResourceMethod(MVCPortlet.java:418)
              at com.liferay.portal.kernel.portlet.LiferayPortlet.serveResource(LiferayPortlet.java:129)
              at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.serveResource(MVCPortlet.java:322)
              at com.liferay.portlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:146)
              at com.liferay.portlet.ScriptDataPortletFilter.doFilter(ScriptDataPortletFilter.java:88)
              at com.liferay.portlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:140)
              at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:78)
              at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:115)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
              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)
      

      Reproduced on:
      Tomcat 9.0.33 + MySQL 5.7. Portal master GIT ID: 032b7e6d287e74944e0544cdc6f77656765243f9.

        Attachments

          Activity

            People

            Assignee:
            yang.cao Yang Cao
            Reporter:
            yang.cao Yang Cao
            Recent user:
            Jason Pince
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                7.3.10 DXP GA1
                Master