Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-19340

CoreSession leak due to long time stored references in content template

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.8.0-HF39, 6.0-HF28, 7.10-HF07, 8.2-SNAPSHOT, 8.3
    • Fix Version/s: 9.1
    • Component/s: Core

      Description

      The class org.nuxeo.ecm.platform.content.template.factories.BaseContentFactory which is used to store template factory in the org.nuxeo.ecm.platform.content.template.service.ContentTemplateServiceImpl stores a CoreSession instance.

        <extension target="org.nuxeo.ecm.platform.content.template.service.ContentTemplateService" point="factory">
          <contentFactory name="ConnectProjectTemplateFactory" class="com.nuxeo.connect.template.ConnectProjectTemplateBasedFactory" />
          <contentFactory name="ConnectServiceTemplateFactory" class="com.nuxeo.connect.template.ConnectServiceTemplateBasedFactory" />
        </extension>
      
      public abstract class BaseContentFactory implements ContentFactory {
      
          protected CoreSession session;
      
          protected boolean initSession(DocumentModel eventDoc) {
              session = eventDoc.getCoreSession();
              return session != null;
          }
      
      }
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours
                2h