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

Unable to remove a portal instance when existing page templates with same uuid in other instances

    Details

      Description

      Steps to reproduce it:

      1. Create a page template.
      2. Create a page using that page template.
      3. Export a LAR with all page templates.
      4. Export a LAR with all pages.
      5. Create a new portal instance.
      6. Import the LAR with all page templates.
      7. Import the LAR with all pages.
      8. Remove that instance.

      Results:
      - Master and 7.0.x:
      There is no stacktrace about the error but you will get:

      - 6.2.x:

      10:57:39,300 ERROR [http-bio-9080-exec-26][render_portlet_jsp:132] null
      com.liferay.portal.RequiredLayoutPrototypeException
              at com.liferay.portal.service.impl.LayoutPrototypeLocalServiceImpl.deleteLayoutPrototype(LayoutPrototypeLocalServiceImpl.java:140)
              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.portal.service.impl.CompanyLocalServiceImpl$1.performAction(CompanyLocalServiceImpl.java:1262)
              at com.liferay.portal.kernel.dao.orm.BaseActionableDynamicQuery.performActionsInSingleInterval(BaseActionableDynamicQuery.java:324)
              at com.liferay.portal.kernel.dao.orm.BaseActionableDynamicQuery.performActions(BaseActionableDynamicQuery.java:46)
              at com.liferay.portal.service.impl.CompanyLocalServiceImpl.doDeleteCompany(CompanyLocalServiceImpl.java:1270)
              at com.liferay.portal.service.impl.CompanyLocalServiceImpl.deleteCompany(CompanyLocalServiceImpl.java:478)
              at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:67)
              at com.liferay.portal.service.CompanyLocalServiceWrapper.deleteCompany(CompanyLocalServiceWrapper.java:70)
              at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:67)
              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)
      

      Expected results:
      Able to remove the portal instance.

        Attachments

        1. 6.2pass.jpg
          6.2pass.jpg
          52 kB
        2. 7.0pass.jpg
          7.0pass.jpg
          23 kB
        3. masterpass.png
          masterpass.png
          16 kB
        4. unable_delete_instance_master_7.0.x.png
          unable_delete_instance_master_7.0.x.png
          40 kB

          Issue Links

            Activity

              People

              • Assignee:
                steven.gao Steven Gao (Inactive)
                Reporter:
                alberto.chaparro Alberto Chaparro
                Participants of an Issue:
                Recent user:
                Csaba Turcsan
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 42 weeks, 2 days ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 DXP FP11
                  7.0.0 DXP SP2
                  7.0.3 CE GA4
                  7.1.X
                  Master