Uploaded image for project: 'Magnolia Personalization'
  1. Magnolia Personalization
  2. MGNLPN-714

Inherited personalized component from parent page is not displayed correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Neutral
    • None
    • 2.1.8
    • None
    • None

    Description

      Description

      This issue happens when you have a child page with a component inherited which has a variant. E.g, at travel page (root page), we define the Footer with some links (Youtube, Pinterest...) and this whole footer area is inherited by any /travel page child. This kind of component variant inheritance resolution fails when Magnolia performs a FORWARD request. For rest of cases, it works as expected: no FORWARD is performed or, instead of it, a REDIRECT is executed.

      Steps to reproduce

      1. Go to demo author and login
      2. Edit /travel page
      3. Go to footer (Links section) and add cookie variant (Basel) in YouTube icon.
      4. Hide the original component so only if the cookie is present, the YouTube icon will be displayed
      5. Publish /travel page.
      6. Within the pages-app, import the website.travel.test (1).yaml file as subpage of travel page (this page simply has different titles for EN and DE)
      7. Publish Test page
      8. Go to Groovy app and import scripts.my(1).xml (there is updated code to contain /travel/ in all paths)
      9. Publish the full folder hierachy
      10. Go to Configuration app and within the filter chain, import config.server.filters.forward.yaml
      11. Publish the filter
      12. Login magonliaPublic
      13. Go to /server/filters and move the forwards filter before login filter
      14. Edit the class but do not touch anything, this will produce the filter chain to reload and the filter will be working (otherwise, the filter won't be executed)
      15. Logout everywhere (author and public)
      16. Open incognito https://demopublic.magnolia-cms.com/travel/test.html (forward filter will forward to /de/travel/test) so in tab we will see the title_de
        • At the moment there is no cookie weatherLocality so you won't be able to see YouTube icon. (OK)
      17. Open other incognito mode

      Expected results

      The variants works as expected (Youtube icon is shown/displayed) depending on the weatherLocality cookie value.

      Actual results

      Looks like the first request configuration is always served

      Workaround

      N/A

      Development notes

      If no FORWARD request is performed, then the inheritance works perfect. If the filter is changed to perform a sendRedirect instead of a forward request, it also works smoothly.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              ccantalapiedra Carlos Cantalapiedra
              AuthorX
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Bug DoR
                  Task DoD