Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-7857

When uploading assets, NullGalleryProcessor is still trying to create an image

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 2.26.01
    • None

    Description

      There is a org.hippoecm.frontend.plugins.gallery.model.NullGalleryProcessor in place for processing assets, instantiated by org.hippoecm.frontend.plugins.gallery.NullGalleryProcessorPlugin, configured at /hippo:configuration/hippo:frontend/cms/cms-services/assetProcessorService

      Despite the naming, it still tries to create an image. For instance, when uploading a .dwg image with mime type "image/vnddwg" as asset, this uoploaded file is still validated as image and rejected in the ResourceHelper#validateResource

      The NullGalleryProcessor should at least override the DefaultGalleryProcessor#makeImage() method, or better yet not extend DefaultGalleryProcessor at all if possible.

      Attachments

        1. cms7-7857-pass.png
          29 kB
          Junaidh Kadhar Sheriff

        Issue Links

          Activity

            People

              jsheriff Junaidh Kadhar Sheriff
              jhoffman Jeroen Hoffman
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: