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

Unable to remove a portal instance when existing articles in other instances have the same templateId of the target instance's global template

    Details

      Description

      1- Create a portal instance.
      2- Create an structure, template and journal article in the Global Scope for that instance.
      3- Export those elements into a LAR file.
      4- Import that LAR at any site for other company.
      5- Close all the browser windows related to the instance created in the first step.
      6- Remove the instance created in the step 1.

      You will get:

      17:22:59,984 ERROR [http-bio-9080-exec-9][render_portlet_jsp:132] null
      com.liferay.portlet.dynamicdatamapping.RequiredTemplateException
              at com.liferay.portlet.dynamicdatamapping.service.impl.DDMTemplateLocalServiceImpl.deleteTemplate(DDMTemplateLocalServiceImpl.java:417)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
              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.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
              at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
              at com.liferay.portlet.dynamicdatamapping.service.impl.DDMTemplateLocalServiceImpl.deleteTemplates(DDMTemplateLocalServiceImpl.java:473)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
              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.liferay.portlet.dynamicdatamapping.service.DDMTemplateLocalServiceUtil.deleteTemplates(DDMTemplateLocalServiceUtil.java:565)
              at com.liferay.portlet.journal.lar.JournalPortletDataHandler.doDeleteData(JournalPortletDataHandler.java:149)
              at com.liferay.portal.kernel.lar.BasePortletDataHandler.deleteData(BasePortletDataHandler.java:65)
              at com.liferay.portal.service.impl.GroupLocalServiceImpl.deletePortletData(GroupLocalServiceImpl.java:3778)
              at com.liferay.portal.service.impl.GroupLocalServiceImpl.deleteGroup(GroupLocalServiceImpl.java:854)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              melody.wu Melody Wu
              Reporter:
              alberto.chaparro Alberto Chaparro
              Participants of an Issue:
              Recent user:
              Michael Saechang
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 39 weeks, 3 days ago

                  Packages

                  Version Package
                  6.2.X EE