Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-1614 Refactor magnolia Context class hierarchy
  3. MAGNOLIA-1800

SystemContext should not share the jcr session for all threads

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Fixed
    • Major
    • 3.5 RC1
    • 3.1 M3
    • None
    • None

    Description

      The jcr session is not thread safe so it is wrong that all calls to MgnlContext.getSystemContext().getHierarchyManager() get the same object.

      This can be solved by implementing getSystemContext() very similar to MgnlContext.getInstance() by using a thread local. All this object have shared attributes, AccessManager, but acquire the jcr session (HierarchyManager) the same way as the other contexts do

      Attachments

        Activity

          People

            pbaerfuss Philipp Bärfuss
            pbaerfuss Philipp Bärfuss
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: