tracker issue : CF-4203427

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

Structfind error message itself has an error

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/Duplicate

Reporter/Name(from Bugbase): A. Bakia / ()

Created: 10/30/2018

Components: Language, Exception Handling

Versions: 13.0

Failure Type: Others

Found In Build/Fixed In Build: 2018,0,01,308605 /

Priority/Frequency: Normal /

Locale/System: / Windows 7 SP1 64-bit

Vote Count: 2

Problem Description:
If you use an integer as second (key) argument of structfind(), you will get an error. The error detail is "StructFind only supports UDFMethod or String(Key) as second argument as second argument.". This sentence itself contains an error. Namely a repetition of the phrase "as second argument".

Steps to Reproduce: 
Run a page containing the following code

<cfscript>
	x={};
	x[1]="some value";
	y=structfind(x,1);
	writeoutput(y);
</cfscript>

Actual Result:
An exception struct whose detail is "StructFind only supports UDFMethod or String(Key) as second argument as second argument.".

Expected Result:
An exception struct whose detail is "StructFind only supports UDFMethod or String(Key) as second argument.".

Any Workarounds:
Not relevant.

Attachments:

Comments:

That
Vote by James Mohler
29883 | October 31, 2018 03:54:28 PM GMT
Integer key should be accepted in structFind. This is a bug. This has been reported , Bug no: CF-4203364
Comment by Suchika Singh
29921 | November 12, 2018 04:17:30 PM GMT