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

Temporary file uploads can leave orphaned assetEntries

    Details

      Description

      Steps to reproduce:

      1. Create a structure with an image field
      2. Create a template for the structure
      3. Create a web content using the structure, upload an image there
      4. Check the dlfileentry table in the database, there is a new temporary entry of the image (note down the fileEntryId)
      5. Check the assetentry table in the database and search for classPK = <fileEntryId>
      6. The resulting entry is will be orphaned once the temp image expires
      7. Wait for the dlFileEntry to expire (default 1 day)
      8. Check that the dlFileEntry is gone
      9. Check the assetEntry

      Expected behaviour: AssetEntry should be cleaned up with temp dlFileEntry

      Current behaviour: AssetEntry remains.

        Attachments

          Activity

            People

            Assignee:
            yang.cao Yang Cao
            Reporter:
            balazs.safrany-kovalik Balázs Sáfrány-Kovalik
            Participants of an Issue:
            Recent user:
            Joel Garman
            Engineering Assignee:
            Balázs Sáfrány-Kovalik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 11 weeks ago

                Packages

                Version Package
                7.0.0 DXP FP88
                7.0.10.13 DXP SP13
                7.0.X
                7.1.10 DXP FP15
                7.1.X
                7.2.10 DXP FP2
                7.2.10.1 DXP SP1
                7.2.X
                Master