[MGNLPN-50] BaseVariantManager#getAllVariants returns unwanted variants for master nodes Created: 25/Mar/14  Updated: 25/Mar/14  Resolved: 25/Mar/14

Status: Closed
Project: Magnolia Personalization
Component/s: Integration
Affects Version/s: None
Fix Version/s: 1.0

Type: Bug Priority: Neutral
Reporter: Jaroslav Simak Assignee: Jaroslav Simak
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
Epic Link: Personalisation
Sprint: 5.3 Sprint 4

 Description   

assume we have:

- demo-project
  - article
    - variant-0
    - variant-1

Now if we try to obtain variants for the demo-project master node, method getAllVariants should return empty iterable, but it returns variant-0 and variant-1, imho its because NodeUtil.collectAllChildren collects all child nodes not only from demo-project, but also from all demo-project child nodes recursively.



 Comments   
Comment by Jaroslav Simak [ 25/Mar/14 ]

https://git.magnolia-cms.com/gitweb/?p=enterprise/p13n.git;a=commit;h=0356683b9a5ce19d75a9db9665a37f6219ba082b

Generated at Mon Feb 12 06:33:48 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.