tracker issue : CF-3738564

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

CFCLIENT: Data structure: structFindValue : structFindValue functions returns an array of struct, path value of this struct shows array index of 2 when it should be 3

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): / ext-user (Anuj Nawani)

Created: 04/08/2014

Components: Mobile Support, Data Structure

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: 289685 / CF11 Update5

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Windows 7 64-bit

Vote Count: 0

Listed in the version 11.0.05.293506 Issues Fixed doc
Code snippet:
<div id="actual_4" class="actual">
<cfclient>
<cfset a="#structNew()#">
<CFSET a.Array = arrayNew(1)>
<CFSET a.Array[1] = "unclekracker - Will not find this">
<CFSET a.Array[2] = structNew()>
<CFSET a.Array[3] = structNew()>
<CFSET a.Array[3].secondstructure = structNew()>
<CFSET a.Array[3].secondstructure.nestedstructure = structNew()>
<CFSET a.Array[3].secondstructure.nestedstructure["SmashMouth"] = "Road Man">
<cfset sArg1= "Road Man">
<CFSET x = structFindValue(a, "#sArg1#","all")>
<cfoutput>#x[1].path#</cfoutput>
</cfclient>
</div>

Expected: .ARRAY[3].SECONDSTRUCTURE.NESTEDSTRUCTURE.SmashMouth
Actual : .Array.2.secondstructure.nestedstructure.SmashMouth

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3738564

External Customer Info:
External Company:  
External Customer Name:  
External Customer Email:

Attachments:

Comments:

Issue is fixed, getting the correct output. Hence, closing this bug. (Comment added from ex-user id:prk)
Comment by Adobe D.
12805 | January 19, 2015 01:35:23 AM GMT
The fix for this bug is available in the pre-release build of ColdFusion 11 Update 5
Comment by CFwatson U.
12806 | February 20, 2015 09:27:53 AM GMT
Verified this is fixed in CF11 Update 5 (build 11,0,05,293506). Thanks!, -Aaron
Comment by External U.
12807 | November 23, 2015 09:58:54 PM GMT