-
Bug
-
Resolution: Fixed
-
Neutral
-
1.1.4
-
None
-
None
-
Magnolia 6.1.2
-
-
Empty show more show less
-
Sprint 5
Hi Mgnls,
I get a NullpointerException in the assets app when uploading a SVG (find stacktrace attached).
I've found this:
https://jira.magnolia-cms.com/browse/RESPDAM-10
But here the mimetype is image.
I debugged so far that the error is this in FocalAreaField class:
ImageIO.read(is)
See method:
protected void refreshBufferedImage(Optional<InputStream> stream)
ImageIO only supports GIF, PNG, JPEG, BMP, and WBMP, see
https://docs.oracle.com/javase/tutorial/2d/images/loadimage.html
Therefor ImageIO returns null as expected although the InputStream is there for the tmp-image and the Optimizer fails with a NullPointerException.
Well, it doesn't make sence to have focal images for SVGs.
Is there any way to exclude SVGs in the configuration?
Thanks.
Sigurd
PS: the Exeption is silent. So the image gets uploaded and can be chosen, but the edit button is disabled.
- mentioned in
-
Page Loading...