Title:
ColdFusion 10 form variable functionality change relating to case of variables
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Tom Lofts / Tom Lofts (loftx)
Created: 07/28/2012
Components: Language
Versions: 10.0
Failure Type:
Found In Build/Fixed In Build: Final / 283412
Priority/Frequency: Normal / Few users will encounter
Locale/System: English / Win 2003 Server
Vote Count: 4
Problem Description:
I have come across a bug/change in functionality relating to the use of multiple form fields using the same name. In ColdFusion 9 these would have been appended to the relevant variable with commas, but in ColdFusion 10, if the case of the variables is different one field will overwrite the other.
Steps to Reproduce:
Create the following index.cfm (attached to report) file and submit the form
<form action="index.cfm" method="post">
<input type="hidden" name="test" value="1" />
<input type="hidden" name="TEST" value="0" />
<input type="submit" />
</form>
<cfdump var="#form#">
Actual Result:
The CFDUMP shows
TEST = 0
Expected Result:
The CFDUMP should show
TEST = 1,0
Any Workarounds:
I believe it is possible to repopulate the form variable using the POST data from GetHttpRequestData() but I have not tested this behaviour.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3298179
Keywords:
FixTested
External Customer Info:
External Company:
External Customer Name: loftx
External Customer Email:
External Test Config: My Hardware and Environment details:
Tested on Windows 2003 running in VMWARE using ColdFusion 10.0 32bit Standard edition.
Attachments:
- July 28, 2012 00:00:00: 1_index.cfm
Comments: