[MGNLGROOVY-67] MgnlGroovyNode iterator() and getChildren() double the number of items Created: 12/Feb/13  Updated: 19/Jun/13  Resolved: 13/Feb/13

Status: Closed
Project: Magnolia Groovy Module
Component/s: None
Affects Version/s: 1.2.4
Fix Version/s: 1.2.5

Type: Bug Priority: Major
Reporter: Federico Grilli Assignee: Federico Grilli
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Release notes required:
Yes
Date of First Response:

 Description   

This is a bug introduced with 1.2 where, if you had i.e. a structure like this

  
+ mynode (mgnl:contentNode)
 + subnode1 (mgnl:contentNode)
 + subnode2 (mgnl:contentNode)

using the "syntax sugar" mynode.children or mynode.each in a script would double the number of elements returned.


Generated at Mon Feb 12 05:55:15 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.