I have been seeing many images uploaded on the site showing 404 default image instead of original image. But couldn't figure out the reason.
Since, Chevereto moved to cronjob for handing the deletion, there is a slight delay of 1-3 mins before the file is actually deleted. Because of this, there is a conflict of uploading images with same file name.
▶ Reproduction steps
Both images got the exact same URL and filename in the system. So when the deletion job deleted the file, the second image started displaying default 404 image even though the image is still exists in DB.
Example: https://gifyu.com/image/5lNl
📃 Error log message
None
PS: I couldn't replicate the issue on demo as image deletion seems to be broken on Demo site. That is Image URLs are still active post deletion of images.
Since, Chevereto moved to cronjob for handing the deletion, there is a slight delay of 1-3 mins before the file is actually deleted. Because of this, there is a conflict of uploading images with same file name.
▶ Reproduction steps
- Upload a image with unique file name.
- Delete the image.
- Immediately upload the same image file again.
- Wait 2-3 mins and access image link.
Both images got the exact same URL and filename in the system. So when the deletion job deleted the file, the second image started displaying default 404 image even though the image is still exists in DB.
Example: https://gifyu.com/image/5lNl
📃 Error log message
None
PS: I couldn't replicate the issue on demo as image deletion seems to be broken on Demo site. That is Image URLs are still active post deletion of images.