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

Selecting content for Export/Import with Date Range does not work

    Details

      Description

      This issue was originally suppose to be fixed by LPS-64047, a unique fix for ee-6.2.x, and was even released to customers (LPE-14859) but the submitted fix did not fix the issue. LPS-64047 failed QA testing but was resolved and closed anyway. See https://issues.liferay.com/browse/LPS-64047?focusedCommentId=823436&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-823436. After that, the issue was suppose to again be fixed for a second time by LPS-67298 but after thorough testing the issue still remains

      Reproduced in master: 27d8ddb9d04ac13e3d744e57886ec236686f87a6
      Reproduced in ee-7.0.x: 1b9159ef62a47ba06612dd531f0449f502aac877

      • Reproducible in ee-7.0.x with LPS-66604 and LPS-67298 backported to ee-7.0.x. Holding off backporting those issues until this issue is completely fixed then will backport all those two issues and this one to the ee-7.0.x branch in order to be released.

      Notes for master and ee-7.0.x:

      1. Perform the following steps as the default admin user.
      2. The following timezones where tested for this issue:
      • (UTC -11:00) Samoa Standard Time
      • (UTC -10:00) Hawaii Standard Time
      • (UTC -08:00) Alaska Daylight Time
      • (UTC -07:00) Pacific Standard Time
      • (UTC -07:00) Mountain Standard Time (Phoenix Time)
      • (UTC -06:00) Mountain Daylight Time
      • (UTC) Coordinated Universal Time
      • (UTC +03:00) Israel Daylight Time
      • (UTC +06:00) Bangladesh Time

      3. However the various timezones produced different results

      • Samoa Standard Time: Expected Result [Step 7], Expected Result [Step 9] and Actual Result [Step 11]
      • Hawaii Standard Time: Expected Result [Step 7], Expected Result [Step 9] and Actual Result [Step 11]
      • Alaska Daylight Time: Expected Result [Step 7], Expected Result [Step 9] and Actual Result [Step 11]
      • Pacific Standard Time: Expected Result [Step 7], Expected Result [Step 9] and Expected Result [Step 11]
      • Mountain Standard Time (Phoenix Time): Expected Result [Step 7], Expected Result [Step 9] and Expected Result [Step 11]
      • Mountain Daylight Time: Actual Result [Step 7], Actual Result [Step 9] and Expected Result [Step 11]
      • Coordinated Universal Time: Actual Result [Step 7], Actual Result [Step 9] and Expected Result [Step 11]
      • Israel Daylight Time: Actual Result [Step 7], Actual Result [Step 9] and Expected Result [Step 11]
      • Bangladesh Time: Actual Result [Step 7], Actual Result [Step 9] and Expected Result [Step 11]

      Steps to Reproduce in master/ee-7.0.x:

      1. Set the user's timezone to (UTC) Coordinated Universal Time or any other time zone of your choosing.
      2. Create a new basic web content article.
      3. Go to Liferay > Content > Web Content.
      4. Select the three dots in the top right corner and select "Export / Import".
      5. Under Content select "Date Range".
      6. By default the date range should have an End Date of the current time, and a Start Date 24 hours in the past. This is set correctly for the specific timezone selected and set in step 1.
      7. Click "Refresh Counts" with the default date range given.
      8. Set the End Date time to one hour earlier (before the web content was created in step 2.
      9. Click "Refresh Counts".
      10. Set the End Date time to one hour ahead in the future.
      11. Click "Refresh Counts".

      Expected Result [Step 7]: The date range should be set and the content counts should be updated/refreshed.
      Actual Result [Step 7]: You see an error that says undefined.
      Expected Result [Step 9]: The date range should be set and the content should be updated/refreshed and in this case no new content should be available to Export/Import.
      Actual Result [Step 9]: You see an error that says undefined.
      Expected Result [Step 11]: You should see an error that says Selected dates cannot be in the future.
      Actual Result [Step 11]: The Export/Import screen breaks and you receive the following stacktrace error.

      18:50:54,835 ERROR [http-nio-8080-exec-6][IncludeTag:128] Current URL /group/guest/~/control_panel/manage?p_p_id=com_liferay_exportimport_web_portlet_ExportImportPortlet&p_p_lifecycle=1&p_p_state=pop_up&p_p_mode=view&_com_liferay_exportimport_web_portlet_ExportImportPortlet_javax.portlet.action=exportImport&_com_liferay_exportimport_web_portlet_ExportImportPortlet_mvcRenderCommandName=exportImport&p_p_auth=6pECjuIj&etag=0&strip=0 generates exception: com.liferay.exportimport.kernel.lar.PortletDataException
      com.liferay.exportimport.kernel.lar.PortletDataException
      	at com.liferay.exportimport.lar.PortletDataContextFactoryImpl.validateDateRange(PortletDataContextFactoryImpl.java:305)
      	at com.liferay.exportimport.lar.PortletDataContextFactoryImpl.createPreparePortletDataContext(PortletDataContextFactoryImpl.java:154)
      	at com.liferay.exportimport.lar.PortletDataContextFactoryImpl.createPreparePortletDataContext(PortletDataContextFactoryImpl.java:172)
      	at com.liferay.exportimport.kernel.lar.PortletDataContextFactoryUtil.createPreparePortletDataContext(PortletDataContextFactoryUtil.java:70)
      	at org.apache.jsp.export_005fportlet_jsp._jspService(export_005fportlet_jsp:1143)
      	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      	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:729)
      	at com.liferay.portal.osgi.web.servlet.jsp.compiler.JspServlet.service(JspServlet.java:408)
      	at com.liferay.portal.osgi.web.servlet.jsp.compiler.JspServlet.service(JspServlet.java:419)
      	at com.liferay.portal.osgi.web.servlet.context.helper.internal.JspServletWrapper.service(JspServletWrapper.java:70)
      	at org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration.service(EndpointRegistration.java:153)
      	at org.eclipse.equinox.http.servlet.internal.servlet.FilterChainImpl.doFilter(FilterChainImpl.java:50)
      	at com.liferay.portal.osgi.web.servlet.context.helper.internal.ServletContextHelperRegistrationImpl$RestrictPortletServletRequestFilter.doFilter(ServletContextHelperRegistrationImpl.java:447)
      	at org.eclipse.equinox.http.servlet.internal.registration.FilterRegistration.doFilter(FilterRegistration.java:121)
      	at org.eclipse.equinox.http.servlet.internal.servlet.FilterChainImpl.doFilter(FilterChainImpl.java:45)
      	at org.eclipse.equinox.http.servlet.internal.servlet.ResponseStateHandler.processRequest(ResponseStateHandler.java:70)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 48 weeks, 1 day ago

                  Packages

                  Version Package
                  7.0.0 DXP FP8
                  7.0.0 DXP SP2
                  7.0.3 CE GA4
                  7.1.X
                  Master