[CLOUDINARY-16] Uploading a .WEBP image file crashes the plugin Created: 17/Dec/20  Updated: 31/Dec/20  Resolved: 31/Dec/20

Status: Closed
Project: Cloudinary DAM Connector
Component/s: None
Affects Version/s: 1.1.3
Fix Version/s: 1.1.4

Type: Bug Priority: Major
Reporter: Niclas Alexander Horstad Assignee: Teresa Miyar
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

DX Core 6.2.5
magnolia-external-dam 1.0.3
magnolia-external-dam-cloudinary 1.1.3


Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

Steps to reproduce

  1.  Upload a .WEBP image to any Cloudinary folder
  2.  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.

 



 Comments   
Comment by Teresa Miyar [ 31/Dec/20 ]

Support for webp has been added but it is restricted to be used on a browser that supports that format, in Safari does not show the image but it does not break the integration.

Generated at Mon Feb 12 00:00:13 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.