Title:
Bug 81961:If you have request debugging on and have either a trace or cftrace in a component and access the component via Ajax the exception occurs
| View in TrackerStatus/Resolution/Reason: Closed/Won't Fix/
Reporter/Name(from Bugbase): Donald Vawter / Don Vawter (donvawter)
Created: 02/03/2010
Components: Debugging, General
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 9,0,0,251028 /
Priority/Frequency: Minor / Unknown
Locale/System: English / Mac 10 All
Vote Count: 0
Problem:
If you have request debugging on and have either a trace or cftrace in a component and access the component via Ajax the exception occurs. Details at http://blog.vawterconsultingservices.com/index.cfm/2010/2/2/Trace-and-ajax-in-CF9
Method:
1. Enable request debugging on.
2. put a trace in cfc
3. call the cfc via ajax
index.cfm
<cfparam name="url.inString" default="No input">
<cfajaxproxy cfc="testtrace_cfc" jsclassname="testTrace">
<script language="JavaScript" type="text/javascript">
oT=new testTrace();
oT.setCallbackHandler(function (data){alert(data);});
oT.setErrorHandler(function (data){alert("failed "+data);});
</script>
<cfoutput>
<a href="##" onclick='oT.doesitfail("#url.instring#");return false;'>click me</a>
</cfoutput>
testtrace_cfc.cfc
component
{
remote string function doesitfail( String input) returnformat="JSON"
{
try
{
trace( text="#arguments.input#" inline="false" );
writelog( file="mylog" text="#arguments.input# was entere");
}
catch( any ex)
{
writelog(file="mylog" text="#ex.message#");
}
return ucase(arguments.input);
}
}
Result:
Variable DEBUGGER is undefined
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3040892
External Customer Info:
External Company:
External Customer Name: Don Vawter
External Customer Email: 147F6A5748CACD26992015A7
External Test Config: 02/03/2010
Attachments:
Comments: