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

Make LazyNodeWrapper prefer JCR session from user context to the one from system context

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 5.6.6, 5.7
    • 5.6.5
    • None
    • None

    Description

      LazyNodeWrapper is capable of re-attaching the underlying node in case its session got closed. However, with current logic the node is re-attached to the session from the system context and not to the user's one, which confusing and error prone.

      Proposal: try to re-attach the node to the session from the MgnlContext, use system context as a fallback.

      This is issue is particularly important for the UI framework improvement effort which encourages the developers to use the nodes directly in the app implementation and LazyNodeWrapper is a handy tool for keeping node alive across requests and is expected to act predictably.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              apchelintcev Aleksandr Pchelintcev
              apchelintcev Aleksandr Pchelintcev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD