Uploaded image for project: 'Advanced Cache'
  1. Advanced Cache
  2. MGNLADVCACHE-118

Personalized variant will displayed for not personalized user

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Critical
    • None
    • None
    • None
    • Component personalization

    Description

      On demo instance (M5.5.2) I can reproduce this issue. Follow these steps:

      1. Opening https://demopublic.magnolia-cms.com/ in browser 1 (e.g. Firefox)
      2. Choose travel type 'cultural'
      3. Opening https://demoauthor.magnolia-cms.com/.magnolia/admincentral#app:jcr-browser:browser;/travel:treeview: and publish a node for cache flush on public instance
      4. Reload https://demopublic.magnolia-cms.com/ in browser 1
        1. cultured tours variant will be shown, because of your tourType cookie
      5. Opening https://demopublic.magnolia-cms.com/ in browser 2 (e.g. Chrome)
        1. cultured tours variant will be shown, BUG there is no tourType cookie
        2. with additional parameter the right original variant is displayed (e.g. https://demopublic.magnolia-cms.com/?test=1)

      Another way to reproduce (from ahietala):

      1. Wait until the live demo resets. On the hour (:00) or half hour (:30).
      2. On the public instance, request the travel home page as a Chinese visitor.
         https://demopublic.magnolia-cms.com/travel?previewCountry=cn 
      3. Request the same page for an anonymous visitor.
        https://demopublic.magnolia-cms.com/travel
      4. Problem: Magnolia cached the personalized content variant (Temples of the Orient) and keeps serving it to a non-personalized visitor. Anonymous visitor should get the original content (Hut to Hut in the Swiss Alps).

      Checklists

        Acceptance criteria

        Attachments

          1. cache-browser-error-case.png
            cache-browser-error-case.png
            83 kB
          2. cache-browser-working-case.png
            cache-browser-working-case.png
            75 kB
          3. first-request-with-cookie.png
            first-request-with-cookie.png
            190 kB
          4. magnolia-debug.log
            138 kB
          5. next-request-without-cookie-but same-response.png
            next-request-without-cookie-but same-response.png
            98 kB
          6. other-device-other-network-same-response.jpeg
            other-device-other-network-same-response.jpeg
            107 kB
          7. screenshot-2.png
            screenshot-2.png
            1.33 MB
          8. screenshot-3.png
            screenshot-3.png
            1.01 MB

          Issue Links

            Activity

              People

                rsiska Robert Šiška
                frank.sommer Frank Sommer
                DeveloperX
                Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                  Created:
                  Updated:

                  Checklists

                    Bug DoR
                    Task DoD