Details
-
Bug
-
Resolution: Fixed
-
High
-
4.6.0beta1
-
None
Description
After removing an image, it still still remains in the /mnt/ezdfs/var/ezflow_site/storage/images/media/images/ folder.
If you put in browser address bar the address to the image file, for instance, (adress of your site)//var/ezflow_site/storage/images/media/images/image/219-1-eng-GB/image_large.jpg the image is displayed.
This happens because Oracle has a specific implementation of delete, where it doesn't expire the files in the database, and deletes the records directly, without deleting the actual physical files.
The current workaround is to use the dfscleanup.php script.
Steps to reproduce
Create an image 1. Login as admin in admin interface 2. Click in Media Library tab on top menu 3. Click in Images on sub-itens 4. Create a new image Name: Test image Upload an image from your local drive 5. Click in Send for publishing button Verify that image is created 1. Click in Media Library tab on top menu 2. Click in Images on sub-itens 3. Open Test image 4. Verify that the image is displayed 5. On command line, go to the cluster shared folder: $ /mnt/ezdfs/var/ezflow_site/storage/images/media/images/image/219-1-eng-GB 6. Verify that the image files are present Remove the image 1. On admin interface, click in Media Library tab 2. Click in Images on sub-itens 3. Open Test image 4. Click in Remove button 5. Uncheck Move to trash checkbox 6. Click in OK button 7. Verify that the image was removed 8. On command line, go to you ez Publish root folder 9. Run the following cronjob $ php runcronjobs.php cluster_maintenance -s ezflow_site 10. On command line, go to the cluster shared folder: $ /mnt/ezdfs/var/ezflow_site/storage/images/media/images/image/219-1-eng-GB 11. Verify that the image files are no longer present