tracker issue : CF-3655341

select a category, or use search below
(searches all categories and all time range)
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 Tracker

Status/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:

This throws a compile error - <cfapplication name="nw" sameformfieldsasarray="true">
Comment by External U.
14039 | October 28, 2013 01:55:54 PM GMT
Checked on CF10 Update11, sameformfieldsasarray by default is false and it returns list when a missing template is called. And your bug has the actual and the expected behavior same. Can you please verify it once.
Comment by HariKrishna K.
14040 | February 13, 2014 05:27:28 AM GMT
As there is no response from the user. Closing this bug as Cannot reproduce.
Comment by HariKrishna K.
14041 | December 03, 2014 12:22:38 AM GMT