-
Bug
-
Resolution: Unresolved
-
Neutral
-
None
-
2.1.7
-
None
-
None
Steps to reproduce
- At demo, go to Pages app
- Create a Page named "mainPageA"
- Edit the page and within the main area, create an HTML component (text=Original).
- Create a variant of that component (text=Variant)
- On the HTML component (variant selector of the green bar), select the "Original" which activates the "Copy item" action
- Copy the HTML component
- Now back to Pages app, on the same level than "mainPageA", create "mainPageB"
- Edit the page and within the main area, clic on "Paste item"
- The component is copied and you can check that both, Original and the Variant show the proper text message (Original and Variant)
- On the HTML component, at the variant selector (Green bar), select original
- Clic on "Delete all components variants"
- Check it fails (exception attached)
Expected results
All variants are deleted
Actual results
An error is thrown
Workaround
Restarting the Magnolia instance fixes the problem
Development notes
It seems like the new page is not marked as "page with variations" (Map<String, Integer> pagesWithVariants class property inside PersonalizedPages)
at info.magnolia.personalization.variant.PersonalizedPages when the component is copy-pasted.
If you restart Magnolia, the index pagesWithVariants is updated and you can delete the variant.
Acceptance criteria
- relates to
-
MGNLPN-682 Removing a variant on a copied or imported page fails.
- Open