-
Notifications
You must be signed in to change notification settings - Fork 615
Description
To Reproduce
Unsure at the moment. Images have gotten corrupted at seemingly random times, it's unclear whether this is a bug with Apostrophe or something on our end. Mind you, this has nothing to do with the image file being missing or corrupted, it seems like the image is missing any reference to image files at all.
Expected behavior
When an image is corrupted, don't load it, or show that the image is broken.
Describe the bug
The corrupted image fails to load, causing all other images and the "Drop new media here" box not to appear.
The images do exist however. Clicking the checkbox in the top left reveals all images on the right side of the menu, including the broken image. Archiving this image will fix the bug for the live images, but will in turn break the archive.
In the browser console I recall seeing something along the lines of Cannot read properties of null (reading '_urls')
.
Details
Server Operating System: A Docker image based on node:lts-alpine3.15
. The MongoDB database runs in a separate container.
This has only occured in production so far.
Screenshot:
This is a recreation of what the image menu would look like with a corrupted image.