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

Upload of certain bmp files fails, CMS silently skips the uploading of such files

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Normal
    • Resolution: Unresolved
    • 2.20.14
    • None
    • None

    Description

      Prerequisite: Build cms 2.20.14-SNAPSHOT, build go green project based on 7.6.6 & CMS 2.20.14-SNAPSHOT and start with cargo.
      Steps:
      1. Login to CMS, navigate to images folder - upload files of different extensions (gif, jpg, jpeg, bmp, png)
      2. All the files are uploaded except bmp with below error message "The uploaded file 'test image23.bmp' has extension bmp which is not allowed. Allowed extensions are: jpg, gif, jpeg, png"
      3. Now go to console as admin @ /hippo:configuration/hippo:frontend/cms/cms-services/imageValidationService for property extensions.allowed add *.bmp
      4. At CMS, logout & login for configuration to load
      5. Again upload files of above extensions

      Expected - All the images should be uploaded
      Actual - All the images are uploaded except bmp format. This image is silently removed and no error or warning message is shown to the CMS user. Attached exceptions are shown in terminal.
      ----------------
      Note the issue is only on 2.20.xx, coz in 7.8 it displayed below error message
      "Upload failed for test image23.bmp.
      org.hippoecm.frontend.plugins.gallery.model.GalleryException: Invalid resource: test image23.bmp"

      Attachments

        1. 6767_retest_fail.txt
          5 kB
        2. anotherbitmap.bmp
          1.40 MB
        3. test image23.bmp
          360 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jsheriff Junaidh Kadhar Sheriff
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: