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

Deleting DDMStructure do not delete DDMStructureVersion

    Details

      Description

      Steps to reproduce:

      1. Go to Content & Data > Documents and Media > Document Types tab;
      2. Create a new Document Type;
      3. Assert on Database that DDMStructure, DDMStructureVersion and DDMStructureLayout are created
      4. Delete the created Document Type
      5. The Document Type is deleted, the ddmStructure associated is deleted

      Expected result:
      The DDMStructureVersion and DDMStructureLayout created are deleted

      Actual result:
      The DDMStructureVersion is not deleted

      track:
      Debug log : 

      No DDMStructureLayout exists with the key {structureVersionId=*****}

       (assert that a DDMStructureLayout with this structureVersionId exists) thrown on 
      https://github.com/liferay/liferay-portal/blob/9cd2db6ec90dcc647c6ba4cbb24bc5fd111bcc82/modules/apps/dynamic-data-mapping/dynamic-data-mapping-service/src/main/java/com/liferay/dynamic/data/mapping/service/impl/DDMStructureLocalServiceImpl.java#L531 

      On that point you can confirm that structureVersions exists but never deleted.

      Reproduced on:
      master @ d86484df4496658d12f06d7d889a2dc20be76d94

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              carolina.barbosa Carolina Barbosa
              Reporter:
              alicia.garcia Alicia Garcia
              Participants of an Issue:
              Recent user:
              Sophia Zhang
              Engineering Assignee:
              Carolina Barbosa
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                10 weeks, 5 days ago

                  Packages

                  Version Package
                  7.4.13 DXP GA1
                  Master