Title:
Multiple Form Fields with the same name are returned as arrays - still not fixed if you go thru the missing template handler.
| View in TrackerStatus/Resolution/Reason: Closed/Withdrawn/CannotReproduce
Reporter/Name(from Bugbase): Mike Collins / Mike Collins (Mike Collins)
Created: 10/28/2013
Components: CFForm
Versions: 10.0
Failure Type:
Found In Build/Fixed In Build: Final /
Priority/Frequency: Minor / Some users will encounter
Locale/System: English / Platforms All
Vote Count: 0
Problem Description:
https://bugbase.adobe.com/index.cfm?event=bug&id=3295296
The above bug is not resolved if you use the missing template handler setting in the CF Admin. This is used by some people to perform request routing for files that don't even exist.
I also think only supporting Application.cfc is incorrect. Some app and or frameworks still use application.cfm and forcing the use of Application.cfc does not seem consisted with other settings.
Problem:
Multiple Form Fields with the same name are returned as arrays instead of lists by default in ColdFusion 10 (a change in functionality from earlier ColdFusion versions)
Method:
Define a missing template handler in the CF Admin
Copy the below code inside the new missing template:
<cfdump var="#form#">
<cfform name="test">
<cfinput name="f1" type="text">
<cfinput name="f1" type="text">
<cfinput name="sub" type="submit">
</cfform>
Request a cfm that does not exist.
Submit the form you get back from the missing template handler.
You will get an array back for F1 field.
http://watsonexp.corp.adobe.com/#bug=3214734
http://stackoverflow.com/questions/11023006/how-to-disable-sameformfieldsasarray-in-coldfusion-10
Result:
Multiple Form Fields with the same name are returned as arrays instead of lists.
Expected:
Multiple Form Fields with the same name should return as arrays instead of lists. {as compared with older CF versions}
Workaround:
NA
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3655341
External Customer Info:
External Company:
External Customer Name: mcollins323
External Customer Email:
External Test Config: My Hardware and Environment details:
<cfdump var="#form#">
<cfform name="test">
<cfinput name="f1" type="text">
<cfinput name="f1" type="text">
<cfinput name="sub" type="submit">
</cfform>
Attachments:
Comments: