tracker issue : CF-4126729

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

Nested Grouped Query Outputs incorrectly group data resulting in Array index out of range error

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Rawdyn Nutting / Rawdyn Nutting (Rawdyn Nutting)

Created: 03/09/2016

Components: Database

Versions: 2016

Failure Type: Unspecified

Found In Build/Fixed In Build: Alpha_v12 /

Priority/Frequency: Major / Unknown

Locale/System: English / Win All

Vote Count: 2

Problem Description:
When nesting more than two grouped query outputs the grouping of data is incorrect and results in a Java Array index out of range error.

Steps to Reproduce:
See attached file: grouped-query-output-bug-V002.cfm
1. Create a query of hierarchical data more than two levels deep.
2. Output data in nested grouped outputs

Notes:
Only occurs nesting more that two outputs.
Changing the order of the query affects the results highlighting the apparent loss of index.
Output of the test file shows the hierarchy of each records (showing where records are incorrectly placed in group) and the (CR:currentrow) of the query record set.

Actual Result:
Data incorrectly grouped and some missing.
Error thrown: java.lang.ArrayIndexOutOfBoundsException: Array index out of range:
See attached file: ACF-11-and-12-Nested-Grouped-Query-Output-Test.PNG noting ACF version in address bar for each test.

Expected Result:
Output should show all records correctly grouped and not throw an error.
See attached file: ACF-11-and-12-Nested-Grouped-Query-Output-Test.PNG noting ACF version in address bar for each test.

Any Workarounds:
Nothing feasible.

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

Watson Bug ID:	4126729

External Customer Info:
External Company:  
External Customer Name: Rawdyn Nutting
External Customer Email: ADOBE@RAWDYN.COM
External Test Config:  


Bug File Paths:
\\sjshare.corp.adobe.com\Prereleasebugfiles\ColdFusion\12.0\Alpha_v12\4020403\ACF12-Nested-Grouped-Query-Output-Error.docx
	 
\\sjshare.corp.adobe.com\Prereleasebugfiles\ColdFusion\12.0\Alpha_v12\4020403\ACF-11-and-12-Nested-Grouped-Query-Output-Test.PNG
	 
\\sjshare.corp.adobe.com\Prereleasebugfiles\ColdFusion\12.0\Alpha_v12\4020403\grouped-query-output-bug-V002.cfm

Attachments:

Comments:

Adding BUG AUDIT TRAIL ********action: updated fieldName: Status newValue: Fixed oldValue: ToTest oprid: nimsharm recordName: RQ_DEFECT timpestamp: 2015-09-28 07:03:45.0 action: updated fieldName: Date Closed newValue: 2015-09-28 00:03:45.0 oldValue: Blank oprid: nimsharm recordName: RQ_DEFECT timpestamp: 2015-09-28 07:03:45.0 action: updated fieldName: Closed By newValue: nimsharm oldValue: Blank oprid: nimsharm recordName: RQ_DEFECT timpestamp: 2015-09-28 07:03:45.0 action: updated fieldName: Owner newValue: Blank oldValue: nimsharm oprid: nimsharm recordName: RQ_DEFECT timpestamp: 2015-09-28 07:03:45.0 action: updated fieldName: State newValue: Closed oldValue: Open oprid: nimsharm recordName: RQ_DEFECT timpestamp: 2015-09-28 07:03:45.0 action: updated fieldName: Reason newValue: Blank oldValue: Fixed oprid: nimsharm recordName: RQ_DEFECT timpestamp: 2015-09-28 07:03:45.0 action: updated fieldName: Reason newValue: Fixed oldValue: BugVerified oprid: himar recordName: RQ_DEFECT timpestamp: 2015-09-27 19:09:27.0 action: updated fieldName: Changelist newValue: 295802 oldValue: Blank oprid: himar recordName: RQ_DEFECT timpestamp: 2015-09-27 19:09:27.0 action: updated fieldName: Status newValue: ToTest oldValue: ToFix oprid: himar recordName: RQ_DEFECT timpestamp: 2015-09-27 19:09:27.0 action: updated fieldName: Owner newValue: nimsharm oldValue: himar oprid: himar recordName: RQ_DEFECT timpestamp: 2015-09-27 19:09:27.0 action: updated fieldName: Fixed By newValue: himar oldValue: Blank oprid: himar recordName: RQ_DEFECT timpestamp: 2015-09-27 19:09:27.0 action: updated fieldName: Date Fixed newValue: 2015-09-27 12:09:27.0 oldValue: Blank oprid: himar recordName: RQ_DEFECT timpestamp: 2015-09-27 19:09:27.0 action: added fieldName: Vote Type newValue: BETA oldValue: Blank oprid: prerelease recordName: AD_DEFECT_VOTE timpestamp: 2015-09-27 05:23:28.0 action: updated fieldName: Priority newValue: 3 oldValue: 0 oprid: vmannebo recordName: RQ_DEFECT timpestamp: 2015-09-08 09:54:38.0 action: updated fieldName: Owner newValue: himar oldValue: nimsharm oprid: nimsharm recordName: RQ_DEFECT timpestamp: 2015-07-14 15:01:54.0 action: updated fieldName: Status newValue: ToFix oldValue: Unverified oprid: nimsharm recordName: RQ_DEFECT timpestamp: 2015-07-14 15:01:54.0 action: updated fieldName: Found in Phase newValue: PreRelease oldValue: Blank oprid: nimsharm recordName: RQ_DEFECT timpestamp: 2015-07-14 15:01:54.0 action: updated fieldName: Reason newValue: BugVerified oldValue: Blank oprid: nimsharm recordName: RQ_DEFECT timpestamp: 2015-07-14 15:01:54.0 action: updated fieldName: Fix By Milestone newValue: Beta oldValue: Blank oprid: nimsharm recordName: RQ_DEFECT timpestamp: 2015-07-14 15:01:54.0 action: updated fieldName: Fix By Product Milestone newValue: Beta oldValue: Blank oprid: nimsharm recordName: RQ_DEFECT timpestamp: 2015-07-14 15:01:54.0 action: added fieldName: Vote Type newValue: BETA oldValue: Blank oprid: prerelease recordName: AD_DEFECT_VOTE timpestamp: 2015-07-14 05:44:24.0
Comment by CFwatson U.
3371 | March 09, 2016 04:49:32 AM GMT
+1 ......................
Vote by External U.
3373 | March 09, 2016 04:49:33 AM GMT
+1, I'm experiencing this as well.
Vote by External U.
3374 | March 09, 2016 04:49:34 AM GMT
Added By:nimsharm Note Added: This issue is fixed now and it will be available as part of next code drop of pre-release program. Date Added :2015-09-28 07:04:29.0 Added By: PreRelease User User Name:Aaron Neff Note Added: Perhaps this is related to CF-3820049 and/or CF-3740141, which I've verified are both fixed in CF12. I'm unable to view the repro for CF-4020403, but the following shows incorrect behavior in CF12: <cfset tagsAndFunctions = queryNew("language,type,name", "", [["CF","tag","cfif"],["CF","tag","cfset"],["CF","function","now"],["CF","function","len"]])> <cfset tagsAndFunctions = queryExecute("SELECT * FROM tagsAndFunctions ORDER BY [language],type,name", "", {dbtype="query"})> <cfloop query="tagsAndFunctions" group="language"> <cfloop group="type"> <cfoutput>#type#: </cfoutput> <cfloop><cfoutput>#name# </cfoutput></cfloop> <br /> </cfloop> </cfloop> Actual result: function: len now Expected result: function: len now tag: cfif cfset Date Added :2015-09-27 05:22:56.0 Added By: PreRelease User User Name:Rawdyn Nutting Note Added: Entered Bug. Date Added :2015-07-14 00:58:26.0
Comment by CFwatson U.
3372 | March 09, 2016 04:49:36 AM GMT