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: