-
Bug
-
Resolution: Fixed
-
Major
-
1.1.3
-
None
-
DX Core 6.2.5
magnolia-external-dam 1.0.3
magnolia-external-dam-cloudinary 1.1.3
Steps to reproduce
- Upload a .WEBP image to any Cloudinary folder
- Open the Assets app and attempt to browse the folder it was uploaded to
Expected results
Either:
- I am prevented from uploading a .WEBP image file, because the format isn't supported/whitelisted
- I can upload the .WEBP image file and the plugin behaves the same as with JPG/PNG images. The Assets app doesn't crash.
Actual results
I cannot open the folder containing the .WEBP image asset, and Magnolia throws an error if I attempt to open it. Blank fields are displayed if I open the folder in the asset selector when adding a component with an image asset property.
The plugin should be capable of graciously handling unknown/unsupported file formats, rather than just crashing and throwing errors.
I shouldn't be allowed to upload unsupported file formats.
The plugin should be using a whitelist to manage permitted file formats, NOT a blacklist.
Workaround
Delete the .WEBP file from the folder via the Cloudinary website.
Acceptance criteria