Issues
- error-public template kills cfcatch structLDEV-4026Resolved issue: LDEV-4026Pothys - MitrahSoft
- Allow for multiple exception handling in catch statementsLDEV-3771Michael Offner
- Please add application-level setting to hide stack trace in catch blocksLDEV-3562
- CFCatch object cannot be used as type java.lang.ThrowableLDEV-3458Michael Offner
- Explicit scoping in CFCATCH variable name doesn't workLDEV-2659Michael Offner
error-public template kills cfcatch struct
Description
Environment
Attachments
Details
Assignee
Pothys - MitrahSoftPothys - MitrahSoftReporter
John WilsonJohn WilsonPriority
NewNew 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
Details
Details
Assignee
Reporter
Priority
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
Activity
Pothys - MitrahSoft9 December 2022 at 06:24Edited
Thanks , As the reporter said I closed this ticket
John Wilson8 December 2022 at 17:27
Yes. Thank you.
Pothys - MitrahSoft21 November 2022 at 07:05
This is an expected behavior. echo() only accepts string data and it has a nice trick with cfcatch.
So, if you need a dump of the error, use writedump(cfcatch)
instead of echo(cfcatch)
.
shall I close this ticket?
John Wilson20 November 2022 at 19:05
Sure. Unzip this and use box start
.
The offending code is in breakMe\modules_app\api\modules_app\v1\handlers\Echo.cfc
index()
Because this code is in a try/catch block, I expect to see a dump of the error, not this: with these settings:
Pothys - MitrahSoft18 November 2022 at 10:21
I checked this ticket with the latest version of lucee 5.3.10.95-SNAPSHOT and can't able to replicate the issue. So please share more details to replicate the issue. This will improve the status of the ticket .
I recently switched to using the error-public template to block robust exception info from being displayed to the public. But I need the cfcatch struct still, so I can log it or send it to sentry for troubleshooting later. This is no longer available.