Title:
Bug 85821:(Watson Migration Closure)when call to custom tag containing cfapplication tag precedes cfc bind, json response is prepended by script tags that spoil the bind (<script type="text/javascript">/* <![CDATA[ */_cf_loadingtexthtml
| View in TrackerStatus/Resolution/Reason: Closed/Withdrawn/
Reporter/Name(from Bugbase): c a jahnke / c a jahnke (frijoles junior)
Created: 01/13/2011
Components: Language, Java Serialization
Versions: 9.0.1
Failure Type:
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Normal / Few users will encounter
Locale/System: English / Platforms All
Vote Count: 0
Problem:
when call to custom tag containing cfapplication tag precedes cfc bind, json response is prepended by script tags that spoil the bind (<script type="text/javascript">/* <![CDATA[ */_cf_loadingtexthtml="<img alt=' ' src='https://tracker.adobe.com/CFIDE/scripts/ajax/resources/cf/images/loading.gif'/>";_cf_contextpath="";_cf_ajaxscriptsrc="/CFIDE/scripts/ajax";_cf_jsonprefix='//';_cf_clientid='58018B7E7C21FA19C515DF5529035566';/* ]]> */</script><script type="text/javascript" src="/CFIDE/scripts/ajax/messages/cfmessage.js"></script><script type="text/javascript" src="/CFIDE/scripts/ajax/package/cfajax.js"></script><script type="text/javascript" src="/CFIDE/scripts/cfform.js"></script><script type="text/javascript" src="/CFIDE/scripts/masks.js"></script><script type="text/javascript" src="/CFIDE/scripts/cfformhistory.js"></script><script type="text/javascript">/* <![CDATA[ */ColdFusion.Ajax.importTag('CFAJAXPROXY');/* ]]> */</script><script type="text/javascript">/* <![CDATA[ */ColdFusion.Ajax.importTag('CFFORM');/* ]]> */</script>)
Method:
bind request that works:binder.cfc?method=editList&_cf_ajaxproxytoken=&returnFormat=json&argumentCollection=%7B%22itemcat%22%3A%22Manuscript%22%2C%22itype%22%3A%2215%22%7D&_cf_nodebug=true&_cf_nocache=true&_cf_rc=0does not work:binder.cfc?method=editList&_cf_ajaxproxytoken=6AEEAD94B3&returnFormat=json&argumentCollection=%7B%22itemcat%22%3A%22Manuscript%22%2C%22itype%22%3A%2215%22%7D&_cf_nodebug=true&_cf_nocache=true&_cf_clientid=58018B7E7C21FA19C515DF5529035566&_cf_rc=0Fixed by including the following in script block: ColdFusion.AjaxProxy.invoke=function(_3b4,_3b5,_3b6,_3b7,_3b8){ var _3b9="method="+_3b5; var _3ba=_3b4.returnFormat||"json"; _3b9+="&returnFormat="+_3ba; if(_3b4.queryFormat){ _3b9+="&queryFormat="+_3b4.queryFormat; } if(_3b4.formId){ var _3bb=$C.getFormQueryString(_3b4.formId,true); if(_3b7!=null){ for(prop in _3bb){ _3b7[prop]=_3bb[prop]; } }else{ _3b7=_3bb; } _3b4.formId=null; } var _3bc=""; if(_3b7!=null){ _3bc=ColdFusion.AjaxProxy.JSON.encode(_3b7); _3b9+="&argumentCollection="+encodeURIComponent(_3bc); } ColdFusion.Log.info("ajaxproxy.invoke.invoking","http",[_3b4.cfcPath,_3b5,_3bc]); if(_3b4.callHandler){ _3b4.callHandler.call(null,_3b4.callHandlerParams,_3b4.cfcPath,_3b9); return; } var _3bd; if(_3b4.async){ _3bd=function(req){ ColdFusion.AjaxProxy.callback(req,_3b4,_3b8); }; } var req=ColdFusion.Ajax.sendMessage(_3b4.cfcPath,_3b4.httpMethod,_3b9,_3b4.async,_3bd,null,true); if(!_3b4.async){ return ColdFusion.AjaxProxy.processResponse(req,_3b4); } };
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3043071
External Customer Info:
External Company:
External Customer Name: c a jahnke
External Customer Email: 39BF6FF54A429FFD99201587
External Test Config: 01/13/2011
Attachments:
Comments: