Return-Path: X-Original-To: apmail-jackrabbit-dev-archive@www.apache.org Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 459CED147 for ; Tue, 12 Feb 2013 12:15:20 +0000 (UTC) Received: (qmail 61214 invoked by uid 500); 12 Feb 2013 12:15:20 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 60731 invoked by uid 500); 12 Feb 2013 12:15:14 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 60686 invoked by uid 99); 12 Feb 2013 12:15:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Feb 2013 12:15:12 +0000 Date: Tue, 12 Feb 2013 12:15:12 +0000 (UTC) From: "Marcel Reutegger (JIRA)" To: dev@jackrabbit.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (JCR-3495) Unregister from PrivilegeRegistry and NodeTypeRegistry on Session.logout() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JCR-3495?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marcel Reutegger updated JCR-3495: ---------------------------------- Resolution: Fixed Fix Version/s: 2.7 Status: Resolved (was: Patch Available) Committed patch in revision: 1445122. > Unregister from PrivilegeRegistry and NodeTypeRegistry on Session.logout() > -------------------------------------------------------------------------- > > Key: JCR-3495 > URL: https://issues.apache.org/jira/browse/JCR-3495 > Project: Jackrabbit Content Repository > Issue Type: Improvement > Components: nodetype, security > Reporter: Marcel Reutegger > Priority: Minor > Fix For: 2.7 > > Attachments: JCR-3495.patch > > > 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. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira