tracker issue : CF-4198617

select a category, or use search below
(searches all categories and all time range)
Title:

Passing JSON argumentcollection to CFC from JavaScript broken after updater 4

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/Duplicate

Reporter/Name(from Bugbase): Eric Cross / Eric Cross ()

Created: 05/09/2017

Components: General Server

Versions: 2016

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: ColdFusion (2016 release) Update 4 (release date April 25, 2017) /

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Win 2012 Server x64

Vote Count: 1

Problem Description:
Functionality change from Updater 3 to Updater 4 caused JavaScript load with parameters to stop sending argumentcollection

Steps to Reproduce:
The following JavaScript code was working properly prior to updater 4.
args = JSON.stringify(data);
panel.load('/com/cms/admin.cfc?method=displaySlideOut', {argumentcollection:args}, function() {
alert('loaded;);
});

Actual Result: Arguments struct does not contain any of the parameters defined in the passed argumentcollection  (Attachment: CF2016-update4-broken.jpg)

Expected Result: Parameters passed to argumentcollection appear as arguments in the called function. (Attachment: CF2016-update3-working.jpg)

You can see in the attached screenshots that the arguments struct is not being populated. 
Note: arguments.a and arguments.action are defined in the application.cfc

Any Workarounds: If I change my code and list each item as an individual parameter it works. I rolled back to updater 3 and everything works properly again.

panel.load('/com/cms/admin.cfc?method=displaySlideOut', {test:1}, function() {
alert('loaded;);
});

This properly passes argument Test = 1

Attachments:

  1. May 09, 2017 00:00:00: CF2016-update3-working.jpg
  2. May 09, 2017 00:00:00: CF2016-update4-broken.jpg
  3. May 12, 2017 00:00:00: index.cfm
  4. May 12, 2017 00:00:00: admin.cfc

Comments:

Hi Eric, Can you please share reproducible code and if possible admin.cfc file and panel.load functionality? Thanks, Manas
Comment by Manas M.
769 | May 10, 2017 11:10:18 AM GMT
I have uploaded an index.cfm and admin.cfc file that work on Update 3, but not after the update 4. Thanks, Eric
Comment by Eric C.
770 | May 12, 2017 07:58:37 PM GMT
I also sent a working example of the bug to Piyush Kumar Nayak. If you need I can upload as well. Thanks, Matt
Comment by Matthew G.
771 | May 12, 2017 08:03:50 PM GMT
Can you please tell me what this is a duplicate of so I can track its status?
Comment by Eric C.
772 | May 19, 2017 11:43:32 AM GMT
Eric, Here is the original bug CF-4198589 Method invocation through ajaxproxy fails even if the required arguments are passed .
Comment by HariKrishna K.
773 | May 19, 2017 11:48:06 AM GMT
When I try to go to that bug it says "No issue found" https://tracker.adobe.com/#/view/CF-4198589
Comment by Matthew G.
774 | May 19, 2017 01:27:34 PM GMT
I got the same message "No issue found"
Comment by Eric C.
775 | May 19, 2017 01:28:46 PM GMT
Hey Eric , Can you check now? Thanks, Suchika
Comment by Suchika S.
776 | May 19, 2017 01:37:00 PM GMT
Yes, I can see it now. Thanks
Comment by Eric C.
777 | May 19, 2017 01:41:00 PM GMT