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

context: system jcr sessions are not released after a request

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 3.5.5, 3.6
    • 3.5.4
    • None
    • None

      The system repository session is nor released when the user context is released. I did not yet apply the following patch as it has consequences where ever a node reference is kept. An obvious example is the user object which keeps a reference to the user's node.

      Here is the needed patch:

      Index: /Users/philipp/checkout/magnolia/magnolia-core/src/main/java/info/magnolia/context/SystemContextImpl.java
      ===================================================================
      --- /Users/philipp/checkout/magnolia/magnolia-core/src/main/java/info/magnolia/context/SystemContextImpl.java	(revision 14777)
      +++ /Users/philipp/checkout/magnolia/magnolia-core/src/main/java/info/magnolia/context/SystemContextImpl.java	(working copy)
      @@ -87,6 +87,7 @@
           }
       
           public void release() {
      +        super.release();
               repositoryStrategyThreadLocal.set(null);
           }
       

        Acceptance criteria

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

                Created:
                Updated:
                Resolved: