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

When deleting a version of a document the corresponding Adaptive Media preview and thumbnail are not also deleted

    Details

      Description

      Steps to Reproduce

      1. Go to [Site_Administration] > Content & Data > Documents and Media, and upload an image
      3. Using a file system, navigate to $[Liferay_Home]/data/document_library/[companyId], then find and note the ID for the folder where the image uploaded in step 2 is located (mine was "20124" – which had one image inside /20124/101/)
      4. Still using the file system, check the /0/adaptive/preview* and /thumbnail* directories to verify that there is a single image (down many folders, starting with the ID from step 3) with a preview/thumbnail of the image uploaded in step 2
      5. In the browser tab, select "⠇> Edit" for the image, then choose a new image and publish
      6. In the file system, check the Preview, Thumbnail, and primary image directories to verify that there is now a version for both image versions included (in their respective sub-directories)
      7. In the browser tab, select the document, click the "i" (info) button, click the Versions tab, then select "⠇> Delete Version" for version 1.0
      8. Check the Preview, Thumbnail, and primary image directories again to observe what images are still present

      Expected Result
      The image for version 1.0 would have been deleted from all three locations

      Actual Result
      The image for version 1.0 was deleted from its primary image directory, but the Preview and Thumbnail images are still present in their respective directories (and still remain even if the full image is later deleted from the bundle)

        Attachments

          Activity

            People

            Assignee:
            beck.liu Beck Liu
            Reporter:
            jonathan.mccann Jonathan McCann
            Participants of an Issue:
            Recent user:
            Jason Pince
            Engineering Assignee:
            Jonathan McCann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

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

                Packages

                Version Package
                7.2.10 DXP FP7
                7.2.X
                7.3.3 CE GA4
                7.3.10 DXP GA1
                Master