tracker issue : CF-4199905

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

cfargument doesn't validate an array of components properly

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): Raymond Camden / Raymond Camden ()

Created: 10/03/2017

Components: Language

Versions: 2016,11.0

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: Alpha, 304000 / 2018,0,0,306083

Priority/Frequency: Normal / Some users will encounter

Locale/System: / Platforms All

Vote Count: 2

Given your cfargument uses a type of foo[], which means, an array of foo components, CF will only validate the very first item in the array, not the entire array.

Documented in 2007: https://www.raymondcamden.com/2007/08/30/Using-component-as-a-variable-type/

Test case exists in the private PR testers forum as well.

Attachments:

Comments:

This is amateurish and ought to be fixed
Vote by Adam C.
253 | October 03, 2017 07:50:24 PM GMT
+1 - Agreed. What's the use of a typed collection if CF only checks the 1st value?
Vote by Aaron N.
254 | October 06, 2017 05:18:27 AM GMT