Issues

Select view

Select search mode

 

error-public template kills cfcatch struct

Fixed

Description

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.

Environment

None

Attachments

3

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

Created 9 June 2022 at 14:17
Updated 9 December 2022 at 06:46
Resolved 9 December 2022 at 06:25

Activity

Show:

Pothys - MitrahSoft9 December 2022 at 06:24
Edited

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 .

Flag notifications