Fixed
Details
Details
Assignee
Michael Offner
Michael OffnerReporter
Brad Wood
Brad WoodPriority
Labels
Fix versions
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Affects versions
Created 4 December 2019 at 20:54
Updated 8 May 2020 at 18:52
Resolved 12 December 2019 at 13:22
Sometimes the type of a caught exception will not be a string, but a complex object. A lot of error handling code expects type to be a string which can cause errors.
See this example, which I tested in a CommandBox task runner that had a text file called "robots.txt" in the same dir. The exception is expected since the text file is not a valid zip, but the type is unexpectedly a complex value.
The output of this code is
You can see the e.type variable is an instance of the net.lingala.zip4j.exception.ZipException$Type class.
I'm running 5.3.4.59-SNAPSHOT but someone on 5.3.3.62 ran my test and didn't get the error, so this may be a regression.