Nested cftry in cfcatch duplicates error logs

Description

When an exception is caught in a cfcatch, any cftry executed within the cfcatch block will duplicate the original error (even if no more exceptions are thrown) in the Exception log.

Simple test case below.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 <cftry> <cfthrow message="Here's an error thrown once" /> <cfcatch> <cfoutput>1st level cfcatch</cfoutput> <cftry> <cftry> <cftry> <cftry> <cfcatch> <cfoutput>5th level cfcatch</cfoutput> </cfcatch> </cftry> <cfcatch> <cfoutput>4th level cfcatch</cfoutput> </cfcatch> </cftry> <cfcatch> <cfoutput>3rd level cfcatch</cfoutput> </cfcatch> </cftry> <cfcatch> <cfoutput>2nd level cfcatch</cfoutput> </cfcatch> </cftry> </cfcatch> </cftry>

Expected Outcome - Debug output will list 1 Caught Exception

Actual Outcome - Debug output lists 5 Caught Exceptions (the same one 5 times).

This will duplicate the exception every time a cftry is executed within the cfcatch (even when in separate components and any level of nesting).

Environment

Ubuntu 16.0.4.5 LTS

Status

Assignee

Michael Offner

Reporter

Beau Gibson

Labels

None

Sprint

None

Fix versions

Affects versions

5.2.8.50

Priority

Critical
Configure