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

Staging public page versioning enabled Import LAR site page variation throws console error and does not import pages.

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: 6.2.10 EE GA1, 6.2.X EE
    • Fix Version/s: 6.2.10 EE GA1, 6.2.X EE
    • Labels:
      None
    • Environment:
      Tomcat 7.0.42 + MySQL 5.5. Portal 6.2.x EE GIT ID: 8020e08719ca11b0f672cb2153229551c7a5b540.
      Portal 6.2.10 EE GA1
    • Fix Priority:
      4

      Description

      Importing a LAR with a site page variation throws a console and does not import the page. The content is imported. This is fixed and works on Master. This issue seems really similar to this one: https://issues.liferay.com/browse/LPS-27258 and was run on the same manual cert.

      Steps to reproduce:

      1. Enable local live staging with public page versioning enabled
      2. Add Site Page Variation: Test
      3. Go to Test and add a message board portlet
      4. Mark as ready for publication > Publish to live
      5. Go to Site Pages and export the LAR
      6. Shut down the app server and clean the environment
      7. Start up and enable local live staging with public page versioning
      8. Add a Site Page Variation
      9. Go to Site Pages and import the site LAR
      10. Assert console errors below

      Expected result:
      The Site Pages LAR should be imported and the page and content will exist on the new site page variation.

      Actual result:
      When importing the LAR a console error is thrown and the page is not imported. The content is imported but not the page.

      19:34:18,995 ERROR [liferay/background_task-1][LayoutTypePortletImpl:1604] com.liferay.portal.NoSuchLayoutSetException: No LayoutSet exists with the key {groupId=10460, privateLayout=false}
      com.liferay.portal.NoSuchLayoutSetException: No LayoutSet exists with the key {groupId=10460, privateLayout=false}
              at com.liferay.portal.service.persistence.LayoutSetPersistenceImpl.findByG_P(LayoutSetPersistenceImpl.java:1170)
              at com.liferay.portal.service.impl.LayoutSetLocalServiceImpl.getLayoutSet(LayoutSetLocalServiceImpl.java:159)
              at sun.reflect.GeneratedMethodAccessor598.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
              at com.liferay.portal.service.impl.LayoutSetLocalServiceStagingAdvice.invoke(LayoutSetLocalServiceStagingAdvice.java:68)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
              at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
              at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
              at com.sun.proxy.$Proxy43.getLayoutSet(Unknown Source)
              at com.liferay.portal.service.LayoutSetLocalServiceUtil.getLayoutSet(LayoutSetLocalServiceUtil.java:298)
              at com.liferay.portal.model.impl.LayoutRevisionImpl.getLayoutSet(LayoutRevisionImpl.java:111)
              at com.liferay.portal.model.impl.LayoutRevisionImpl.getTheme(LayoutRevisionImpl.java:141)
              at sun.reflect.GeneratedMethodAccessor1237.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at com.liferay.portal.model.LayoutStagingHandler.invoke(LayoutStagingHandler.java:119)
              at com.sun.proxy.$Proxy417.getTheme(Unknown Source)
              at com.liferay.portal.model.impl.LayoutTypePortletImpl.getThemeId(LayoutTypePortletImpl.java:1594)
              at com.liferay.portal.model.impl.LayoutTypePortletImpl.getLayoutTemplate(LayoutTypePortletImpl.java:350)
              at com.liferay.portal.model.impl.LayoutTypePortletImpl.getColumns(LayoutTypePortletImpl.java:1399)
              at com.liferay.portal.model.impl.LayoutTypePortletImpl.getPortletIds(LayoutTypePortletImpl.java:435)
              at com.liferay.portlet.layoutsadmin.lar.LayoutStagedModelDataHandler.updateTypeSettings(LayoutStagedModelDataHandler.java:1146)
              at com.liferay.portlet.layoutsadmin.lar.LayoutStagedModelDataHandler.doImportStagedModel(LayoutStagedModelDataHandler.java:506)
              at com.liferay.portlet.layoutsadmin.lar.LayoutStagedModelDataHandler.doImportStagedModel(LayoutStagedModelDataHandler.java:1)
              at com.liferay.portal.kernel.lar.BaseStagedModelDataHandler.importStagedModel(BaseStagedModelDataHandler.java:159)
              at com.liferay.portal.kernel.lar.StagedModelDataHandlerUtil.importStagedModel(StagedModelDataHandlerUtil.java:317)
              at com.liferay.portal.kernel.lar.StagedModelDataHandlerUtil.importStagedModel(StagedModelDataHandlerUtil.java:307)
              at com.liferay.portal.lar.LayoutImporter.importLayout(LayoutImporter.java:843)
              at com.liferay.portal.lar.LayoutImporter.doImportLayouts(LayoutImporter.java:501)
              at com.liferay.portal.lar.LayoutImporter.importLayouts(LayoutImporter.java:118)
              at com.liferay.portal.service.impl.LayoutLocalServiceImpl.importLayouts(LayoutLocalServiceImpl.java:1756)
              at com.liferay.portal.service.impl.LayoutLocalServiceImpl.importLayouts(LayoutLocalServiceImpl.java:1805)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
              at com.liferay.portal.service.impl.LayoutLocalServiceVirtualLayoutsAdvice.invoke(LayoutLocalServiceVirtualLayoutsAdvice.java:180)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
              at com.liferay.portal.service.impl.LayoutLocalServiceStagingAdvice.invoke(LayoutLocalServiceStagingAdvice.java:141)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
              at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
              at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
              at com.sun.proxy.$Proxy33.importLayouts(Unknown Source)
              at com.liferay.portal.service.LayoutLocalServiceUtil.importLayouts(LayoutLocalServiceUtil.java:1308)
              at com.liferay.portal.lar.backgroundtask.LayoutImportBackgroundTaskExecutor.execute(LayoutImportBackgroundTaskExecutor.java:61)
              at com.liferay.portal.kernel.backgroundtask.SerialBackgroundTaskExecutor.execute(SerialBackgroundTaskExecutor.java:56)
              at com.liferay.portal.backgroundtask.messaging.BackgroundTaskMessageListener.doReceive(BackgroundTaskMessageListener.java:108)
              at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
              at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
              at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:69)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:682)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:593)
              at java.lang.Thread.run(Thread.java:744)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              evan.nagayama Evan Nagayama (Inactive)
              Reporter:
              evan.nagayama Evan Nagayama (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 47 weeks ago

                  Packages

                  Version Package
                  6.2.10 EE GA1
                  6.2.X EE