tracker issue : CF-4110576

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

CFDUMP and writeDump() fail when hiding struct elements via "hide" attribute/argument

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Ron Stewart / Ron Stewart (Ron Stewart)

Created: 01/26/2016

Components: Debugging, CFDump

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

Listed in the version 2016.0.03.300466 Issues Fixed doc
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:

When might we see a fix for this? Been marked to "ToFix" for over 3 months and apparently did not make the cut for the CF updates published 2016-05-10.
Comment by External U.
4849 | May 10, 2016 01:54:52 PM GMT
The fix will be available in the upcoming updates. Thanks!
Comment by S P.
4850 | August 08, 2016 01:10:29 AM GMT