tracker issue : CF-3754578

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

Error messaging with cfloop() is rather messed up

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)

Created: 05/04/2014

Components: Language

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: PublicBeta / 2018,0,0,308647

Priority/Frequency: Normal / Some users will encounter

Locale/System: English / Platforms All

Vote Count: 1

See: http://cfmlblog.adamcameron.me/2014/05/coldfusion-11-cfloop-in-cfscript-very.html

In short, the error messages when using unsupported functionality are poorly expressed, misleading or just wrong.

-- 
Adam

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3754578

External Customer Info:
External Company:  
External Customer Name: Adam Cameron.
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments:

We will not take this up and might deprecate cfloop() in cfscript altogether in future.
Comment by Milan C.
12334 | September 27, 2015 07:36:24 AM GMT
Hi Milan, cfloop() cannot be deprecated b/c w/o cfloop() there would be no grouped query looping in cfscript: <cfloop query = "query name" startRow = "row number" endRow = "row number" group = "Query column"> </cfloop> So cfloop() should be fixed. Thanks!, -Aaron
Comment by External U.
12335 | September 27, 2015 01:05:59 PM GMT
I see this ticket is Open/ToDefer/NeverFix. It actually needs to be fixed. Please see comments on #CF-3754577. Thanks!, -Aaron
Comment by External U.
12336 | September 27, 2015 01:15:23 PM GMT
+1 ......................
Vote by External U.
12341 | September 27, 2015 01:17:05 PM GMT
There is an enhancement to support grouped query looping in for() syntax in cfscript. - #CF-3754577. We will not deprecate cfloop before taking that enahancement.
Comment by Milan C.
12337 | September 28, 2015 01:42:30 AM GMT
Hi Milan, Thanks very much for clarifying. Additionally, there is ER CF-3041787 for additional enhancements to <cfloop>. 1) loop-specific CurrentRow and RecordCount 2) ability to break out of the outermost loop from within any descendant loop (instead of having to break out of each descendant loop one-by-one) Thanks!, -Aaron
Comment by External U.
12338 | September 28, 2015 03:20:57 AM GMT
To clarify, "2)" in my previous comment applies only to the context of grouped query looping.
Comment by External U.
12339 | September 28, 2015 03:49:26 AM GMT
We will evaluate this for the release after Raijin. At the very least, we can look at the displaying proper error messages.
Comment by Vamseekrishna N.
12340 | December 10, 2015 04:58:16 AM GMT