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

Cleanup abuse of unclosed sessions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.2 M1
    • Fix Version/s: 5.2 GA
    • Component/s: Core
    • Tags:
    • Impact type:
      API added
    • Upgrade notes:
      Hide

      DocumentModel.getCoreSession() has been added.

      Show
      DocumentModel.getCoreSession() has been added.

      Description

      Many places in the code do a Repository.open() and forget to close the session.
      The means that DocumentManagerBeans are leaked, something we have no way to detect in code.

      In order to combat that, we should promote the use of the existing session, by adding a DocumentModel.getCoreSession() method, and making use of UnrestrictedSessionRunner otherwise.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: