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

Fix DirectoryManagerBean bad concurrency management when closing sessions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.1.6, 5.2 M3
    • Fix Version/s: 5.1.x, 5.2 M4
    • Component/s: Directory

      Description

      When using pages with heavy directory usage (such as forms with many vocabulary access) with several concurrent users one can get the following crash:

      Caused by: org.nuxeo.ecm.directory.DirectoryException: Could not find directory name while rebuilding session with id: 1
      at org.nuxeo.ecm.platform.directory.ejb.DirectoryManagerBean.getSession(DirectoryManagerBean.java:107)
      at org.nuxeo.ecm.platform.directory.ejb.DirectoryManagerBean.close(DirectoryManagerBean.java:127)
      at sun.reflect.GeneratedMethodAccessor150.invoke(Unknown Source)

      This is due to the fact that the sessions maps are static while the session counter is not. A proposed patch will be attached in comments.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: