tracker issue : CF-3038022

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

Bug 76222:You can't put UDFs in structs anymore

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Raymond Camden / Raymond Camden (Raymond Camden)

Created: 03/27/2009

Components: General Server

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 / 229975

Priority/Frequency: Major / Unknown

Locale/System: English / Mac 10 All

Vote Count: 1

Problem:

You can't put UDFs in structs anymore. Pretty bad bug here. Code below thanks to Sean.
Method:

<cfscript>

	function stuff()
	{
		writeOutput("I was called");
	}

	function callit(f)
	{
		arguments.f();
	}

	request.udf = { };
	request.udf.stuff = stuff;

	system.dump(var=request);

	writeOutput("Test: ");
	callit(stuff);            // works
	callit(request.udf.stuff); // works, proving request.udf.stuff is a callable function
	request.udf.stuff();      // FAILS!! claims function stuff not found

</cfscript>
Result:

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

Watson Bug ID:	3038022

External Customer Info:
External Company:  
External Customer Name: Raymond Camden
External Customer Email: 5FBC41E943BD265C992015D5
External Test Config: 03/27/2009

Attachments:

Comments:

This sort of breakage is just silly - how is this getting past the in-house test suites? request.something.func() is a fairly common way to handle global libraries of functions - this must be present in Adobe's test code, surely?
Vote by External U.
23825 | November 10, 2011 07:18:18 PM GMT