Title:
CFDUMP and writeDump() fail when hiding struct elements via "hide" attribute/argument
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Ron Stewart / Ron Stewart (Ron Stewart)
Created: 01/26/2016
Versions: 11.0
Failure Type: Crash
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Major / All users will encounter
Locale/System: ALL / Mac 10 All
Vote Count: 0
Problem Description:
Under certain circumstances both CFDUMP and writeDump() will throw an exception when dumping a struct and the "hide" attribute/argument is used to exclude certain keys.
Steps to Reproduce:
The following code will exhibit the described breakage. The first CFDUMP will succeed, the second will cause CF to throw and exception. Using analogous calls to the writeDump() function yields identical behavior.
<cfset s = StructNew() />
<cfset s['a'] = 'a' />
<cfset s['b'] = 'b' />
<cfset s['1,2,3'] = '1,2,3' />
<cfdump var="#s#" label="Struct s (complete)" />
<cfdump var="#s#" label="Struct s (partial)" hide="a" />
Actual Result:
The first dump succeeds; the second throws an exception: "Element 1 is undefined in a CFML structure referenced as part of an expression."
Expected Result:
Both invocations of CFDUMP should succeed.
Any Workarounds:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4110576
External Customer Info:
External Company:
External Customer Name: Ron Stewart
External Customer Email:
External Test Config: ColdFusion 11 on any Windows and Mac OS X
Attachments:
Comments: