Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 9549 invoked from network); 26 May 2009 17:27:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 May 2009 17:27:58 -0000 Received: (qmail 66765 invoked by uid 500); 26 May 2009 17:28:10 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 66703 invoked by uid 500); 26 May 2009 17:28:10 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 66671 invoked by uid 99); 26 May 2009 17:28:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 May 2009 17:28:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 May 2009 17:28:06 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BA190234C1F0 for ; Tue, 26 May 2009 10:27:45 -0700 (PDT) Message-ID: <1379521872.1243358865761.JavaMail.jira@brutus> Date: Tue, 26 May 2009 10:27:45 -0700 (PDT) From: "Emmanuel Lecharny (JIRA)" To: dev@directory.apache.org Subject: [jira] Updated: (DIRSERVER-1357) NullPointerException when deleting alias In-Reply-To: <1037119758.1241600250672.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DIRSERVER-1357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Emmanuel Lecharny updated DIRSERVER-1357: ----------------------------------------- Fix Version/s: 1.5.5 Definitively to be fixed for 1.5.5 > NullPointerException when deleting alias > ---------------------------------------- > > Key: DIRSERVER-1357 > URL: https://issues.apache.org/jira/browse/DIRSERVER-1357 > Project: Directory ApacheDS > Issue Type: Bug > Components: core > Affects Versions: 1.5.5, 1.5.4 > Reporter: Stefan Seelmann > Fix For: 1.5.5 > > Attachments: DIRSERVER_1357.java > > > There is a NPE when deleting an alias entry is some special case. Here is a example DIT: > ou=system > |--ou=sales > | |--cn=foo <--real entry > |--ou=engineering > |--cn=foo <--alias, pointing to the real entry > When I first delete the real entry and afterwards the alias the server throws an exception, when it cleans the oneAliasIdx and subAliasIdx in the JdbmStore. Note, the exception does not occur if the real entry and alias are direct descendants of the context entry, because in that case the oneAliasIdx and subAliasIdx are not used. > java.lang.NullPointerException > at org.apache.directory.server.core.partition.impl.btree.LongComparator.compare(LongComparator.java:45) > at org.apache.directory.server.core.partition.impl.btree.LongComparator.compare(LongComparator.java:1) > at org.apache.directory.server.core.avltree.AvlTree.find(AvlTree.java:661) > at org.apache.directory.server.core.avltree.AvlTree.remove(AvlTree.java:217) > at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmTable.remove(JdbmTable.java:662) > at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmIndex.drop(JdbmIndex.java:468) > at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmStore.dropAliasIndices(JdbmStore.java:822) > at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmStore.delete(JdbmStore.java:1098) > at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition.delete(JdbmPartition.java:487) > at org.apache.directory.server.core.partition.impl.btree.BTreePartition.delete(BTreePartition.java:217) > at org.apache.directory.server.core.partition.DefaultPartitionNexus.delete(DefaultPartitionNexus.java:824) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.