Uploaded image for project: 'Cloudinary DAM Connector'
  1. Cloudinary DAM Connector
  2. CLOUDINARY-16

Uploading a .WEBP image file crashes the plugin

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.1.4
    • 1.1.3
    • None
    • DX Core 6.2.5
      magnolia-external-dam 1.0.3
      magnolia-external-dam-cloudinary 1.1.3

    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.

       

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              tmiyar Teresa Miyar
              pioka Niclas Alexander Horstad
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD