Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-3495

Unregister from PrivilegeRegistry and NodeTypeRegistry on Session.logout()

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4.5, 2.6.1, 2.7
    • Component/s: nodetype, security
    • Labels:
      None

      Description

      PrivilegeRegistry and NodeTypeRegistry contains weak references to a session even if the session is explicitly logged out. While PrivilegeRegistry is designed that way and currently does not allow a client to unregister a listener, the NodeTypeRegistry does have a method to unregister, but it is not used by NodeTypeManagerImpl.

      This puts extra load on the finalizer and should be avoided.

        Attachments

        1. JCR-3495.patch
          4 kB
          Marcel Reutegger

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mreutegg Marcel Reutegger
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: