All factories fail for the operation "filestore" writing ARGB images out as JPEGs

Description

WriteToBrowser jpeg with an ARGB image throws

because jpeg doesn't support ARGB images

https://trycf.com/gist/af55c50bcb9d4cdf7ea1afb2c87aaeaa/lucee5?theme=monokai

(crashes with 5.3.8.49-SNAPSHOT, but not 5.3.6.61 aka trycf:latest)

rather than this cryptic error, it should throw "Cannot convert image to jpeg, jpeg doesn't support ARGB images"

another problem is

https://trycf.com/gist/cdc9ed3f9dbb3114cee42012d17da4b1/lucee5?theme=monokai

throws the extremely cryptic error message

lucee.runtime.exp.NativeException: lucee.runtime.type.util.MemberUtil.call(lucee.runtime.PageContext, java.lang.Object, lucee.runtime.type.Collection$Key, lucee.runtime.type.Struct, short, java.lang.String) at java.base/java.lang.Class.getMethod(Class.java:2108) at org.lucee.extension.image.util.CommonUtil.callWithNamedValues(CommonUtil.java:99) at org.lucee.extension.image.Image.callWithNamedValues(Image.java:1591) at lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:864)

Environment

None

Activity

Show:
Zac Spitzer
September 2, 2020, 1:47 PM

strangely, today I’m now getting the following error with 5.3.8.49

Can't cast Object type [Struct] to a value of type [Image]

lucee.runtime.exp.CasterException: Can't cast Object type [Struct] to a value of type [Image] at lucee.runtime.op.ExceptonImpl.createCasterException(ExceptonImpl.java:108) at org.lucee.extension.image.Image.createImage(Image.java:1655) at org.lucee.extension.image.tag.Image.doStartTag(Image.java:281)

I just tried uninstalling the image snapshot and reinstalling it,. but that didn’t help. but then when I restarted Lucee it worked. I had downgraded to the Image Extension 1.0.0.29 before to test the regression, but I hadn’t restarted Lucee after I updated back to 10.0.0.36-SNAPSHOT

Also, my deploy.log is set to trace and there was no logging about the extension being removed and installed beyond

"INFO","ajp-nio-0:0:0:0:0:0:0:1-8009-exec-5","09/01/2020","15:14:39","extension","Remove FLD file [image-function.fld]"
"INFO","ajp-nio-0:0:0:0:0:0:0:1-8009-exec-5","09/01/2020","15:14:39","extension","Remove TLD file image-tag.tldx"
"INFO","ajp-nio-0:0:0:0:0:0:0:1-8009-exec-5","09/01/2020","15:14:39","extension","Deploy fld [image-function.fld]"
"INFO","ajp-nio-0:0:0:0:0:0:0:1-8009-exec-5","09/01/2020","15:14:39","extension","Deploy tld/tldx [image-tag.tldx]"
"INFO","ajp-nio-0:0:0:0:0:0:0:1-8009-exec-4","09/01/2020","15:23:45","extension","Remove FLD file [image-function.fld]"
"INFO","ajp-nio-0:0:0:0:0:0:0:1-8009-exec-4","09/01/2020","15:23:45","extension","Remove TLD file image-tag.tldx"
"INFO","ajp-nio-0:0:0:0:0:0:0:1-8009-exec-4","09/01/2020","15:23:45","extension","Deploy fld [image-function.fld]"
"INFO","ajp-nio-0:0:0:0:0:0:0:1-8009-exec-4","09/01/2020","15:23:45","extension","Deploy tld/tldx [image-tag.tldx]"
"INFO","ajp-nio-0:0:0:0:0:0:0:1-8009-exec-7","09/02/2020","15:40:11","extension","Remove FLD file [image-function.fld]"
"INFO","ajp-nio-0:0:0:0:0:0:0:1-8009-exec-7","09/02/2020","15:40:11","extension","Remove TLD file image-tag.tldx"
"INFO","ajp-nio-0:0:0:0:0:0:0:1-8009-exec-10","09/02/2020","15:41:12","extension","Deploy fld [image-function.fld]"
"INFO","ajp-nio-0:0:0:0:0:0:0:1-8009-exec-10","09/02/2020","15:41:12","extension","Deploy tld/tldx [image-tag.tldx]"

Pothys - MitrahSoft
September 2, 2020, 1:51 PM

Yeah , I also faced this same error.
Initially I tested with image extension version - 1.0.0.36-SNAPSHOT and then update the version to 1.0.0.35 - release means, works fine.
And if we update version to initial version 1.0.0.36-SNAPSHOT means, it throws an error like

Zac Spitzer
September 2, 2020, 1:52 PM

I just filed about the lack of deploy.logs when installing / removing and extension

Zac Spitzer
September 2, 2020, 1:59 PM

filed about the problems with the image extensions requiring a restart

Zac Spitzer
September 24, 2020, 8:21 AM

Seems that the new Image 1.0.0.37 snapshot fixes the first problem with 5.3.8.21 (can someone add that fix version?)

I have logged a separate bug for the second problem

Assignee

Pothys - MitrahSoft

Reporter

Zac Spitzer

Priority

New

Labels

Fix versions

None

Affects versions

Configure