Uploading small (less than 1024px) images fails
Embedding images into text, via Quill, fails if neither image width nor height exceeds 1024 pixel, that is when no down-scaling takes place. The image does not appear and the Quill toolbar stays open. No visible feedback.
The browser console shows an error:
The server log shows an error:
Apr 17, 2024 2:00:02 AM systems.dmx.fileupload.provider.UploadedFileProvider parseMultiPart
INFO: ### Parsing multipart/form-data request (1 parts)
Apr 17, 2024 2:00:02 AM systems.dmx.fileupload.provider.UploadedFileProvider parseMultiPart
INFO: ### field "image" => "2277648.jpeg" (44211 bytes)
Apr 17, 2024 2:00:02 AM systems.dmx.linqa.ImageScaler scale
INFO: Size 281x279 (no scaling needed)
Apr 17, 2024 2:00:02 AM systems.dmx.files.FilesPlugin storeFile
INFO: Storing null at repository path "/"
Apr 17, 2024 2:00:02 AM systems.dmx.core.util.UniversalExceptionMapper logException
SEVERE: Request "POST /linqa/image" failed. Responding with 500 (Internal Server Error). The original exception/error is:
java.lang.RuntimeException: Uploading image ""2277648.jpeg" (44211 bytes)" failed
at systems.dmx.linqa.LinqaPlugin.storeScaledImage(LinqaPlugin.java:512)
...
Caused by: java.lang.RuntimeException: Storing null at repository path "/" failed
at systems.dmx.files.FilesPlugin.storeFile(FilesPlugin.java:211)
at systems.dmx.linqa.LinqaPlugin.storeScaledImage(LinqaPlugin.java:510)
... 51 more
Caused by: java.lang.NullPointerException
at systems.dmx.files.FilesPlugin.storeFile(FilesPlugin.java:199)
... 52 more
This is a bug in conjunction with image scaling (#38 (closed)) as introduced in Linqa 1.8-SNAPSHOT.
Hint: uploading images as Linqa documents works. There no image scaling takes place (yet).
@jpn FYI