Title:
[ANeff] Bug for: THIS.searchImplicitScopes=false breaks web service argumentCollection
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/Fixed
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)
Created: 11/01/2016
Components: Web Services
Versions: 2016
Failure Type:
Found In Build/Fixed In Build: CF2016_Update3 / 302165
Priority/Frequency: Major / Some users will encounter
Locale/System: English / Win All
Vote Count: 0
THIS.searchImplicitScopes=false breaks web service argumentCollection
Simple repro:
1) Run this:
Application.cfc
----------------------
component {
THIS.name = "SearchImplicitScopesDisabledBreaksWebServiceArgumentCollection";
THIS.secureJSONPrefix="";
THIS.searchImplicitScopes = false;
}
MyCFC.cfc
----------------------
component {remote function myFunction(myArg) {return ARGUMENTS;}}
index.cfm
----------------------
<cfscript>
myArgs = {myArg="foobar"};
cfhttp(url='http://' & CGI.HTTP_HOST & getDirectoryFromPath(CGI.SCRIPT_NAME) & 'MyCFC.cfc?method=myFunction&argumentCollection=' & serializeJSON(myArgs).encodeForURL() & '&returnFormat=json');
writeOutput(CFHTTP.FileContent);//returns {"MYARG":null} (bad)
cfwddx(action="cfml2wddx", input=myArgs, output="myArgsWDDX");
cfhttp(url='http://' & CGI.HTTP_HOST & getDirectoryFromPath(CGI.SCRIPT_NAME) & 'MyCFC.cfc?method=myFunction&argumentCollection=' & myArgsWDDX.encodeForURL() & '&returnFormat=json');
writeOutput(CFHTTP.FileContent);//returns {"MYARG":null} (bad)
</cfscript>
Actual result: {"MYARG":null}{"MYARG":null}
Expected result: {"MYARG":"foobar"}{"MYARG":"foobar"}
Verified in CF2016 Update 3 (build 2016.0.03.300466).
Note: All CFAJAX that relies on web service argumentCollection (CFAJAX grids, cfajaxproxy, etc) is also broken.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4197186
External Customer Info:
External Company:
External Customer Name: Aaron Neff
External Customer Email:
Attachments:
Comments: