tracker issue : CF-3842284

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

Submitting form with file and CFGRID - Exception in The submitted cfgrid form field is corrupt

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Chad Baloga / Chad Baloga (steelers45820)

Created: 10/22/2014

Components: AJAX, UI Components

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: Final /

Priority/Frequency: Critical / Most users will encounter

Locale/System: English / Windows 7 64-bit

Vote Count: 5

Listed in the version 11.0.05.293506 Issues Fixed doc
Problem Description:  I have a form with a file upload and a CFGRID.  This works with CF10 Update 13. When we upgraded to Update 14 this error started occuring.

Steps to Reproduce: Create a cfm page with cfform enctype=multipart/form-data and have a CFGRID on the page as well. When you submit the error occurs.

Actual Result:

Expected Result:

Any Workarounds:

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3842284

External Customer Info:
External Company:  
External Customer Name: steelers45820
External Customer Email:  
External Test Config: My Hardware and Environment details: Win 7 64bit, CF10 Update 14, JDK1.8_25

Attachments:

Comments:

Verified this issue exists in CF10 Update 14 and CF11 Update 3 (11,0,03,292245(PreRelease)). The issue does not exist in CF10 Update 8. Repro: <cfform enctype="multipart/form-data"> <cfgrid name="myGrid" format="html"> <cfgridcolumn name="myColumn" /> <cfgridrow data="foobar" /> </cfgrid> <cfinput type="submit" name="submit" value="submit" /> </cfform> 1) Click submit 2) See error: "The submitted cfgrid form field is corrupt (name: __CFGRID__CFFORM_1__MYGRID value: ,)" Thanks!, -Aaron
Comment by External U.
10537 | November 25, 2014 11:39:33 PM GMT
+1
Comment by External U.
10538 | February 04, 2015 11:29:59 AM GMT
Verified this behavior when cfgrid is nested inside cfform. ColdFusion version 11,0,03,292866.
Comment by External U.
10539 | February 19, 2015 04:27:50 PM GMT
Updated CF11 to Update 4 which was released 2/19/2015: Was able to recreate the problem still.
Comment by External U.
10540 | February 20, 2015 10:41:17 AM GMT
Here is the full error message (from my testing) under the hood: coldfusion.filter.GridFieldProcessor$CorruptGridFieldException: The submitted cfgrid form field is corrupt (name: __CFGRID__FRMGRID__GRIDVMDL value: __CFGRID__EDIT__=4IDx2;YDLNAMEx2;YDISPLAYNAMEx2;YDLNUMBERx2;Y1Ux2;1x2;1x2;Accounting1x2;Accountingx2;Accountingx2;901x2;901) at coldfusion.filter.GridFieldProcessor.decode(GridFieldProcessor.java:151) at coldfusion.filter.FormScope.processSpecialFields(FormScope.java:789) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:438) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:142) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94) at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:78) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:58) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:151) at coldfusion.CfmServlet.service(CfmServlet.java:219) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at coldfusion.inspect.weinre.MobileDeviceDomInspectionFilter.doFilter(MobileDeviceDomInspectionFilter.java:121) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:422) at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:199) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745)
Comment by External U.
10541 | February 20, 2015 10:49:52 AM GMT
Another note (regarding a workaround): using format="flash" for the grid (and the cfform) does not have a problem.
Comment by External U.
10542 | February 20, 2015 10:52:13 AM GMT
THIS IS NOT A DUPLICATE! DID YOU READ IT? IT IS YET ANOTHER BUG WITH CFGRID. Please let me know the status!
Comment by External U.
10543 | March 13, 2015 09:17:44 AM GMT
Values and ValuesDisplay no longer work with Flash or HTML formats.
Comment by External U.
10544 | March 13, 2015 11:27:48 AM GMT
We are planning on migrating from CF9 to 10/11 and are coming against this error as a roadblock for our plans. Message: The submitted cfgrid form field is corrupt (name: __CFGRID__EDITFORM__PROJECTS value: [, __CFGRID__EDIT__=5PROJECTNAMEx2;YPROJECTIDx2;YEXPIRATIONPERIODx2;YIDSHLPROJECTSx2;NLANGUAGEx2;Y0]) Present in version: 11,0,04,293328
Vote by External U.
10558 | March 18, 2015 05:01:57 AM GMT
This bug makes unuseful several functions in some of our end-user systems. If it is not corrected we will have to remove cfgrid with an alternative, which will demand time, money and more end-user-expectations managing. This vote would help to give this problem more priority and focus in order to include its solution in the next ColdFusion11 hotfix.
Vote by External U.
10559 | April 14, 2015 11:29:09 PM GMT
The same error was gotten on ColdFusion 11 Update 4 (11,0,04,293328) and Java version 1.7.0_55 on IIS7.5 on Windows Server 2008 R2 64bit. This occurred using cfgrid with HTML format and two drop-down list columns.
Comment by External U.
10545 | April 14, 2015 11:37:13 PM GMT
Why has this issue been closed and the status as fixed? Does it work now? I have received no response that this is working properly.
Comment by External U.
10546 | June 19, 2015 06:47:41 AM GMT
Seems Adobe is mailing out fixes to individuals. I received a fix (some data redacted due to security). Would be nice if they'd just make the fix public at this point. --------------------------------------------- Adobe response follows --------------------------------------------- We have got a new fix for the cfgrid issues, you are facing. This fix covers Bug# CF-3842284 (The submitted cfgrid form field is corrupt), Bug# CF-3945554 (cfgridupdate) and Bug# CF-3741324 (dropdown listbox outside the confines of the grid control). You can apply CF11 Update 5 first and then this fix on top of it. Please try the following steps:- 1. Stop ColdFusion 11 Application Service 2. Download the hotfix from ftp://XXXXXXXX@sjftp.adobe.com/ColdFusion/hf1100-CF-3842284.jar. Alternatively, you can download the fix from https://www.dropbox.com/s/XXXXXXX/hf1100-CF-3842284.jar as well. 3. Place this hf1100-CF-3842284.jar at the location -- \ColdFusion11\cfusion\lib\updates\ 4. Take a backup of cfgrid.js at \CFIDE\scripts\ajax\package\ and delete it. 5. Download the cfgrid.js from ftp://XXXXXXXXX@sjftp.adobe.com/ColdFusion/cfgrid.js and place it at the above location. Alternatively, you can download the fix from https://www.dropbox.com/s/XXXXXXXX/cfgrid.js, as well. 6. Start ColdFusion 11 Application Service.
Comment by External U.
10547 | June 25, 2015 08:54:05 AM GMT
Adobe is mailing out fixes to individuals. How do I obtain this hotfix, when will it be public, I need this fix for a production rollout of CF11.
Vote by External U.
10560 | July 01, 2015 12:53:03 AM GMT
How can I obtain this hotfix?
Vote by External U.
10561 | August 19, 2015 12:23:18 PM GMT
This issue is fixed in CF11 update 5.
Comment by Piyush K.
10548 | October 08, 2015 12:15:17 AM GMT
Hi Piyush, I've verified this is fixed in CF11 Update 5. But it is not listed as being fixed in CF11 Update 5. Please see: https://helpx.adobe.com/coldfusion/kb/bugs-fixed-in-coldfusion-11-update-5.html Can this ticket please be listed on that page. Thanks!, -Aaron
Comment by External U.
10549 | October 08, 2015 12:29:22 AM GMT
Thanks for pointing that out Aaron. I've updated the bugs-fixed-list article.
Comment by Piyush K.
10550 | October 08, 2015 04:07:04 AM GMT
Hi Piyush, You're welcome and thanks! -Aaron
Comment by External U.
10551 | October 08, 2015 11:51:05 AM GMT
Well, this is interesting. I am experiencing this error in CF11, WITH hotfix 5 applied (someone else applied it to the server before I started working here). I also verified that the problem does not occur with format="flash", but the html format is the one we want to use. The biggest problem we face is that there is no proxy available to do an automatic update.
Comment by External U.
10552 | December 03, 2015 01:32:42 PM GMT
Also, posting files on ftp and dropbox sites DOES NOTHING when the CF admin doesn't have a login to the sites. Sometimes I hate you guys so much. We spend good money for your software and you make it so hard to actually use it. :-)
Comment by External U.
10553 | December 03, 2015 01:54:17 PM GMT
HTML formatted CFGRIDs are broken on our site now.
Vote by External U.
10562 | December 03, 2015 01:55:32 PM GMT
Dave, Can you share the code with which you can observe the error, and the error as well. Or are you using the test code mentioned in one of the preceding comments. Can you also pls. share the update level and build no. of your CF server from the settings summary in the CF administrator.
Comment by Piyush K.
10554 | December 07, 2015 11:27:46 AM GMT
Thank you for looking at this. Please let us know the status of this bug. I upgraded from CF11 v6 to v7. I had the original error before I upgraded, but it seems to have gone away. New problems are occurring. I may not be using cfgridupdate correctly. In an email, I attached: 1. Sample code (cfgrid.cfm) 2. Log files 3. Windows 7 Pro, SP1, 64-bit OS 4. Setting summary from CFAdmin Errors: 1. If the primary key is in cfgrid which is needed for updates, then the insert will not work. 2. The updates do not make the changes to the correct modified row. 3. Sometimes it randomly duplicates entries Browser console: Uncaught TypeError: Cannot read property 'xtype' of undefined It looks like some of the fields are being entered multiple times if the primary key is in a cfgridcolumn: __CFGRID__frm__artwork __CFGRID__EDIT__=3ARTID[1]YARTNAME[1]YRATING[1]Y4U[1]2[1]2[1]Another Piece[1]Another Piece[1]11[1]5U[1]5[1]5[1]Pretty[1]Pretty[1]12[1]3U[1]8[1]8[1]Ugly[1]Ugly[1]15[1]2U[1]8[1]8[1]Ugly[1]Ugly[1]18[1]4 If I remove the primary key from cfgridcolumn, then the following error occurs: Primary key(s) artid not found. The cfgridupdate tag cannot update or delete the row because it cannot find the primary key(s) artid in the cfgrid form fields for table art in datasource cpindexSQL. The error occurred inC:/inetpub/wwwroot/ipmcenters_org/CropProfiles/admin/tests/cfgrid.cfm: line 2 1 : <CFIF IsDefined("form.gridEntered")> 2 : <cfgridupdate grid="artwork" tablename="art" datasource="#application.dsn#"> 3 : </CFIF> 4 :
Comment by External U.
10555 | December 11, 2015 12:29:50 PM GMT
The status of this shows fixed and closed. Has a fix been released?
Comment by External U.
10556 | December 11, 2015 12:30:32 PM GMT
What version and release is this fix available in? How does one acquire the fix?
Comment by External U.
10557 | June 02, 2016 02:48:54 PM GMT