Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-352

Fix for access ctrl on public site breaks preview mode

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 2.1.5
    • 2.01, 2.1 Final
    • core
    • None
    • any

    Description

      The fix applied on both the trunk and the 2.02 branch implemented for the public site access problem causes the showPreview() in info.magnolia.cms.util.Resource to longer work as expected. As an effect, preview mode is no longer persistent: if you switch into preview mode, then surf to another page, that page shows up in edit mode again.

      The problem probably is with authenticate() in info.magnolia.cms.servlets.EntryServlet: the session of a particular user seems to be invalidated there, which causes the "mgnlPreview" attribute to be removed - preview mode is then no longer active. I've compared a previous working copy of magnolia with the current one of the 2.02 branch and found this to be the only significant change.

      This bug is also related to a recent patch I submitted to fix showPreview of the info.magnolia.cms.util.Resource class. However, I think, the patch is not the problem.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              weder Andreas Weder
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD