Title:
Submitting form with CFGRID - Exception in The submitted cfgrid form field is corrupt
| View in TrackerStatus/Resolution/Reason: To Fix//BugVerified
Reporter/Name(from Bugbase): Shigeyoshi M. / ()
Created: 08/23/2019
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: