Status/Resolution/Reason: Closed/Withdrawn/Duplicate
Reporter/Name(from Bugbase): Matthew Hunnell / Matthew Hunnell ()
Created: 05/12/2017
Components: Language, CF Component
Versions: 2016
Failure Type: Others
Found In Build/Fixed In Build: 2016,0,04,302561 /
Priority/Frequency: Normal / All users will encounter
Locale/System: / Win 2012 Server x64
Vote Count: 0
Problem Description:
We are trying to migrate from cf11 to cf2016. Much of our code is failing because 2016 does not handle remote cfcs the same when accessing them via cfajaxproxy post. It looks like it is on th ajaxproxy side. My guess is that cfajaxproxy is the problem. We can't migrate without this fix or dozens of hours of re-coding to dump cfajaxproxy.
The variables that are passed are not recognized by the remote cfc leadding to "The VARIABLENAMEHERE parameter to the myFunctionName function is required but was not passed in".
Steps to Reproduce:
I built a simple example. Please see the attached files.
CFM FILE:
<cfajaxproxy cfc="testCFajaxProxy" jsclassname="p" />
<script type="text/javascript">
function runTest() {
var instance = new p();
instance.setHTTPMethod("POST");
var result = instance.testProxy('Test String');
alert(result);
}
</script>
<input type="button" value="Try it!" onClick="javascript:runTest();" />
CFC FILE:
<cfcomponent>
<cffunction name="testProxy" access="remote" returntype="string" output="no">
<cfargument name="var1" type="string" required="true">
<cfset local.returnVar = arguments.var1 & ' testProxy function added some text. '>
<cfreturn local.returnVar>
</cffunction>
</cfcomponent>
Actual Result:
Expected Result:
Any Workarounds:
Attachments:
- May 12, 2017 00:00:00: testCFajaxProxy.cfc
- May 16, 2017 00:00:00: testcfajax.cfm
Comments: