[MGNLPN-455] Bad variant reference when nested variants in components Created: 19/Dec/19  Updated: 19/Jan/21  Resolved: 19/Jan/21

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

Type: Bug Priority: Neutral
Reporter: Carlos Cantalapiedra Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Magnolia 5.7.7


Issue Links:
Relates
relates to MGNLPN-453 Pages with component variants don't c... Closed
causality
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
Date of First Response:

 Description   

When a variant of a variant is created, the varianfOf reference is badly set.

This issue can be reproduced in demoauthor running on Magnolia 6.1

To reproduce:

  1. Go to https://demoauthor.magnolia-cms.com/.magnolia/admincentral#app:pages;/travel/about:edit
  2. Choose a sub component of the column layout and create a component variant
  3. Choose the surrounding column layout component and create a component variant
  4. Choose a sub component of the parent variant and create a component variant 

In JCR browser the reference the mgnl:variationOf of the step 4 is wrong, it points to the original component ID.

 



 Comments   
Comment by Richard Gange [ 18/Jan/21 ]

This is a frustrating ticket because where does it end. Trying to twist the page into a variant pretzel doesn't seem like a good idea to me. We need some kind of chart I think to keep track of what is supported. 

Choose a sub component of the column layout and create a component variant

Choose node: /travel/about/main/04/column2/03 (text & image node)
Variants here: /travel/about/main/04/column2/03/variants
'mgnl:variationOf': !weakreference 'b1960df4-e572-4154-8946-f620609b2d5e' (choosen node)

Choose the surrounding column layout component and create a component variant

Now there is two separate 03 node variants:

  • /travel/about/main/04/variants/variant-0/column2/03/variants (step 2)
  • /travel/about/main/04/column2/03/variants (step 1)

Choose a sub component of the parent variant and create a component variant

Choosen node: /travel/about/main/04/variants/variant-0/column1/0
Variants here: /travel/about/main/04/variants/variant-0/column1/0/variants
'mgnl:variationOf': !weakreference '5bb3ef67-f5ef-46a0-8d17-e64d1303fea5' (choosen node)

Also looking at the sub variant of step 2:
/travel/about/main/04/variants/variant-0/column2/03
/travel/about/main/04/variants/variant-0/column2/03/variants
'mgnl:variationOf': !weakreference 'a6e8434b-da4c-4113-b2cd-dbb6c4241e19'

Comment by Richard Gange [ 19/Jan/21 ]

Cannot reproduce this issue in 6.2.5

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