Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-21360

eZFS2: binary images/files not deleted when object is removed

    Details

      Description

      After removing objects with images (ezimage) or files (ezbinaryfile) the source files are not removed from var/storage.

      • create a new image 'yourimage'
      • check that the file(s) exist in /var/storage/images/ <path/> yourimage
      • delete the image object in admin (do not move to trash)
        Result:
      • the object is deleted, the files are still present on disk

        Issue Links

          Activity

          Bertrand Dunogier logged work - 19/Aug/13 5:38 PM
          • Time Spent:
            3 hours
             
            <No comment>
          Bertrand Dunogier logged work - 20/Aug/13 10:14 AM
          • Time Spent:
            30 minutes
             

            Merged to stable-4.7: https://github.com/ezsystems/ezpublish-legacy-ee/commit/27b32c5f95c66446262f639a1f2abcca5ac24b22 (doesn't apply to master since FS2 has been removed in 5.0).

            Can be backported to all 4.x branches if required.

            Cleaning up expired files

            Existing files are not removed by this patch. The easiest, and tested, way to do so is to find files modified on 1977-05-26 00:00. Using GNU find, it would work like this:

            find var/*/storage/{original,images} -newermt "1977-05-25 00:00" ! -newermt "1977-05-26 00:01" -delete

          Pedro Resende (Inactive) logged work - 22/Aug/13 10:04 AM - edited
          • Time Spent:
            30 minutes
             

            Worked on story

          Bertrand Dunogier logged work - 23/Aug/13 2:22 PM
          • Time Spent:
            2 hours
             
            <No comment>
          Pedro Resende (Inactive) logged work - 23/Aug/13 5:53 PM
          • Time Spent:
            2 hours, 30 minutes
             

            Worked on story

          Pedro Resende (Inactive) logged work - 26/Aug/13 6:07 PM
          • Time Spent:
            1 hour
             

            Analyse and reproduce issue, write test case and verify the issue has been fixed.

            People

            • Assignee:
              Unassigned
              Reporter:
              Joao Inacio (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 1 hour, 30 minutes
                1d 1h 30m