Title:
Bug 85293:(Watson Migration Closure)While writeDump() can be used to send a variable dump to the browser, a file, or the console from a script component, it can not be used to generate output and save it to a variable (for example, to i
| View in TrackerStatus/Resolution/Reason: Closed/Deferred/
Reporter/Name(from Bugbase): Adam Tuttle / Adam Tuttle (Adam Tuttle)
Created: 12/03/2010
Components: Language, CFSCRIPT
Versions: 9.0.1
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Normal / Unknown
Locale/System: English / Platforms All
Vote Count: 1
Problem:
While writeDump() can be used to send a variable dump to the browser, a file, or the console from a script component, it can not be used to generate output and save it to a variable (for example, to include in an email).When you try to do the script equivalent of this tag code:<cfsavecontent variable="foo"><cfdump var="#e#"/></cfsavecontent>... an exception is thrown.I would like to either see the ability to use writeDump as any other function, or failing that, at least the addition of another "output" option to store the output in a variable.The workaround, currently, is to write a file to the ram disk, read it back in, and delete the file. This adds significant bloat to the code.
Method:
The error messages provided occurr when the following code is run:1) local.msg = "<h2>Inputs:</h2> #writeDump(arguments)# <h2>Exception:</h2> #writeDump(e)#";or 2) local.msg = "#writeDump(var=arguments,format='text')#";
Result:
Method writeDump with 1 arguments is not in class coldfusion.runtime.CFComponentorParameter validation error for the WRITEDUMP function.:A built-in ColdFusion function cannot accept an assignment statement as a parameter, although it can accept expressions. For example, WRITEDUMP(d=a*b) is not acceptable.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3042932
External Customer Info:
External Company:
External Customer Name: Adam Tuttle
External Customer Email: 71DA001D4586B5B5992015D5
External Test Config: 12/03/2010
Attachments:
Comments: