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

Cannot delete site or site template with DDLRecords

    Details

    • Fix Priority:
      4

      Description

      A site or site template cannot be deleted if it has one or more DDLRecords.

      Steps to reproduce:
      1. Create a new site (or site template)
      2. From content administration for the new site, navigate to Dynamic Data Lists, and add a new data definition
      3. Create a new list based on this definition
      4. Create a record in this list
      5. Go to Control Panel -> Sites, and try to delete this site

      Expected result: the site is deleted
      Actual result: "Dockbar is temporarily unavailable" and "Site is temporarily unavailable" error messages appear, and the site is not deleted. A strack trace is also seen in the logs (shown below).

      Reproduced in ee-6.2.x: a12d6f47a07cd25753b224756b6167ca691d4f42
      Not reproduced in master: 00b3ef7cf1fa10e6efbc8458479d1e633942e77b

      A possible workaround is to delete all records within the site before attempting to delete the site.

      The strack trace shown when the error is reproduced is as follows:

      23:43:19,401 ERROR [http-bio-8080-exec-3][render_portlet_jsp:132] null
      com.liferay.portlet.dynamicdatamapping.NoSuchStructureException: No DDMStructure exists with the primary key 20546
              at com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructurePersistenceImpl.findByPrimaryKey(DDMStructurePersistenceImpl.java:9231)
              at com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructurePersistenceImpl.findByPrimaryKey(DDMStructurePersistenceImpl.java:9249)
              at com.liferay.portlet.dynamicdatamapping.service.impl.DDMStructureLocalServiceImpl.getStructure(DDMStructureLocalServiceImpl.java:739)
              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.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
              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.cache.ThreadLocalCacheAdvice.invoke(ThreadLocalCacheAdvice.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.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
              at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              alec.shay Alec Shay
              Participants of an Issue:
              Recent user:
              Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  6.2.X EE