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

Publishing DDL record from global scope does not work

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 6.2.0 CE GA1, 7.0.0 M3
    • Fix Version/s: 6.2.0 CE GA1, 7.0.0 M3
    • Labels:
      None
    • Environment:
      Tomcat 7.0 + MySQL Portal 6.2.x GIT ID: 1dc0eaebdf853515b8f686abdf97b6b162c6cd73.
      Tomcat 7.0 + MySQL Portal master GIT ID: b5189537ed8a82f61f16eb4f6427d7ebf1ccb75e.

      Description

      Publishing DDL record from global scope does not work

      Steps to reproduce:

      1. Add DDL record in global scope
      2. Create new site and activate staging in new site.
      3. In the new site, add page and add DDL display portlet
      4. Configure the portlet to display DDL from global scope
      5. Publish page to live

      Expected Result:
      Publishing will be successful

      Actual Result:
      User will find the attached exceptions after publishing to live.

      19:41:23,021 ERROR [liferay/background_task-1][BackgroundTaskMessageListener:133] Unable to execute background task
      com.liferay.portal.kernel.lar.PortletDataException: java.lang.UnsupportedOperationException
              at com.liferay.portal.kernel.lar.BaseStagedModelDataHandler.importCompanyStagedModel(BaseStagedModelDataHandler.java:133)
              at com.liferay.portal.kernel.lar.BaseStagedModelDataHandler.importCompanyStagedModel(BaseStagedModelDataHandler.java:118)
              at com.liferay.portal.kernel.lar.StagedModelDataHandlerUtil.importReferenceStagedModels(StagedModelDataHandlerUtil.java:262)
              at com.liferay.portlet.dynamicdatalists.lar.DDLDisplayPortletDataHandler.doProcessImportPortletPreferences(DDLDisplayPortletDataHandler.java:107)
              at com.liferay.portal.kernel.lar.BasePortletDataHandler.processImportPortletPreferences(BasePortletDataHandler.java:535)
              at com.liferay.portal.lar.PortletImporter.importPortletPreferences(PortletImporter.java:1163)
              at com.liferay.portal.lar.LayoutImporter.doImportLayouts(LayoutImporter.java:599)
              at com.liferay.portal.lar.LayoutImporter.importLayouts(LayoutImporter.java:118)
              at com.liferay.portal.service.impl.LayoutLocalServiceImpl.importLayouts(LayoutLocalServiceImpl.java:1756)
              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:601)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
              at com.liferay.portal.service.impl.LayoutLocalServiceVirtualLayoutsAdvice.invoke(LayoutLocalServiceVirtualLayoutsAdvice.java:179)
              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 $Proxy32.importLayouts(Unknown Source)
              at com.liferay.portal.service.LayoutLocalServiceUtil.importLayouts(LayoutLocalServiceUtil.java:1282)
              at com.liferay.portal.lar.backgroundtask.LayoutStagingBackgroundTaskExecutor$LayoutStagingCallable.call(LayoutStagingBackgroundTaskExecutor.java:190)
              at com.liferay.portal.lar.backgroundtask.LayoutStagingBackgroundTaskExecutor$LayoutStagingCallable.call(LayoutStagingBackgroundTaskExecutor.java:1)
              at com.liferay.portal.spring.transaction.TransactionalCallableUtil$CallableMethodInvocation.proceed(TransactionalCallableUtil.java:84)
              at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
              at com.liferay.portal.spring.transaction.TransactionalCallableUtil.call(TransactionalCallableUtil.java:36)
              at com.liferay.portal.lar.backgroundtask.LayoutStagingBackgroundTaskExecutor.execute(LayoutStagingBackgroundTaskExecutor.java:76)
              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:722)
      Caused by: java.lang.UnsupportedOperationException
              at com.liferay.portal.kernel.lar.BaseStagedModelDataHandler.doImportCompanyStagedModel(BaseStagedModelDataHandler.java:226)
              at com.liferay.portal.kernel.lar.BaseStagedModelDataHandler.importCompanyStagedModel(BaseStagedModelDataHandler.java:127)
              ... 37 more
      

        Attachments

          Activity

            People

            Assignee:
            lawrence.lee Lawrence Lee
            Reporter:
            lawrence.lee Lawrence Lee
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              8 years, 29 weeks, 5 days ago

                Packages

                Version Package
                6.2.0 CE GA1
                7.0.0 M3