tracker issue : CF-4205347

select a category, or use search below
(searches all categories and all time range)

Update 12: Exception occurring in conditional branch that should not be evaluated

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/Duplicate

Reporter/Name(from Bugbase): Daniel R. / ()

Created: 10/01/2019

Components: Language, Exception Handling

Versions: 2016

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: 2016,0,03,301771 /

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Linux

Vote Count: 6

Problem Description:
An exception is thrown in a branch of a IF expression that should not be executed.

This bug has been introduced in update 12. Running the same test code below in ColdFusion 11 does not exhibit the bug.

Steps to Reproduce:

<cffunction name="test">
    <cfif false>
        <cfoutput>condition == true</cfoutput>
        <cfreturn {
            result = variables.nonExisting
        <cfoutput>condition == false</cfoutput>
        <cfreturn {
            result = ""

<cfset test()>

Actual Result:
Exception is thrown: "Error [main] - Element NONEXISTING is undefined in VARIABLES."

Expected Result:
Successful execution of the script, output: "condition == false"

Any Workarounds:



Seeing similar behavior, but in cfscript. Code worked before but is now failing.
Vote by Jeff C.
31509 | October 01, 2019 05:31:38 PM GMT
Same here. We had to downgrade to 2016.11.
Vote by Daniel R.
31554 | October 06, 2019 11:42:28 AM GMT
Hi All, There is already a bug #CF-4205251 reported related to this issue. Hence, I am withdrawing this bug as duplicate. -Nimit
Comment by Nimit S.
31580 | October 10, 2019 10:26:18 AM GMT
This is a better example than the CF-4205251
Comment by Travis E.
31637 | October 17, 2019 02:01:41 PM GMT