tracker issue : CF-4205050

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

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

| View in Tracker

Status/Resolution/Reason: To Fix//BugVerified

Reporter/Name(from Bugbase): Shigeyoshi M. / ()

Created: 08/23/2019

Components: CFForm, HTML

Versions: 2018

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: 2018.0.04.314546 / NA

Priority/Frequency: Major / Most users will encounter

Locale/System: / Win 2016

Vote Count: 0

Problem Description:
Create a cfm page with cfform and have a CFGRID on the page as well.
When you submit the error occurs.

Steps to Reproduce:

1.Create a cfm page with cfform and have a CFGRID on the page as well.
[gtest.cfm]
<cfscript>
  qEmp = queryNew("id,name", "Varchar,Varchar",
                       [["a", "name1"], ["b", "name2"], ["c", "name3"]]);
</cfscript>
<cfform>
<cfgrid format="html" name="grid1" query="qEmp">
  <cfgridcolumn name="id">
  <cfgridcolumn name="name">
</cfgrid>
<cfinput type="submit" name="submit" value="submit">
</cfform>

2. Click submit on the cfm.

Actual Result:

Nothing is being displayed on the screen. Checking coldfusion-error.log, the error message is appended:
"The submitted cfgrid form field is corrupt (name: __CFGRID__CFFORM_1__GRID1 value: [, ])"

Servlet.service() for servlet [CfmServlet] in context with path []
threw exception [ROOT CAUSE:
coldfusion.filter.GridFieldProcessor$CorruptGridFieldException: The
submitted cfgrid form field is corrupt (name:
__CFGRID__CFFORM_1__GRID1 value: [, ])
at coldfusion.filter.GridFieldProcessor.decode(GridFieldProcessor.java:281)
at coldfusion.filter.FormScope.processSpecialFields(FormScope.java:858)
at coldfusion.filter.FormScope.setEncoding(FormScope.java:94)
at coldfusion.runtime.CFPage.SetEncoding(CFPage.java:2039)
at cfclassic2ecfm160208449._factor21(C:\ColdFusion2018\cfusion\wwwroot\WEB-INF\debug\classic.cfm:19)
at cfclassic2ecfm160208449._factor33(C:\ColdFusion2018\cfusion\wwwroot\WEB-INF\debug\classic.cfm:12)
at cfclassic2ecfm160208449.runPage(C:\ColdFusion2018\cfusion\wwwroot\WEB-INF\debug\classic.cfm:1)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:262)

This is reproducible on ColdFusion 2018 Update4 and 2016 Update 11.
It is not reproducible on ColdFusion 11 Update 19.

Any Workarounds:
This behavior is simlar to the bug below which have logged past:
https://tracker.adobe.com/#/view/CF-3842284

However, in CF-3842284, the error is generated when enctype=multipart/form-data is specified to cfform.  This case is exactly reversed behavior. The error can be avoided when enctype=multipart/form-data is specfied to cfform.

Attachments:

Comments:

Hi Shigeyoshi , I have tried in ColdFusion 2018 update 4 and ColdFusion 2016 update 11 and unable to replicate the issue ? Are you observing any error in browser console while running the sample code?   Thanks, Mukesh
Comment by Mukesh K.
31336 | September 16, 2019 11:26:18 AM GMT
The log "cfgrid form field is corrupt" in "coldfusion-error.log" is output only when "Enable Request Debugging Output" is activated. "Nothing is being displayed on the screen." in Description is likely machine-specific(cfgrid_post_error.png).
Comment by Shigeyoshi M.
31358 | September 24, 2019 07:52:48 AM GMT
I have the same issue. I can replicate the error with your sample Code.
Comment by Gerhard L.
31817 | November 12, 2019 01:19:51 PM GMT
Hi Shigeyoshi, Gerhard , Can you please apply the latest update of ColdFusion 2018 and check if you still facing the issue. [https://helpx.adobe.com/in/coldfusion/kb/coldfusion-2018-updates.html] As of now withdrawing the bug as I am unable to reproduce the bug. Pl. drop a mail to me at [mukumar@adobe.com|mailto:mukumar@adobe.com]  if you face issue with repro code mentioned in the bug.   Regards, Mukesh  
Comment by Mukesh K.
33360 | April 03, 2020 06:30:58 AM GMT