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

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

      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

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

              Created:
              Updated:
              Resolved: