From dev-return-42394-apmail-directory-dev-archive=directory.apache.org@directory.apache.org Wed Feb 13 00:07:16 2013 Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-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 61561EBD9 for ; Wed, 13 Feb 2013 00:07:16 +0000 (UTC) Received: (qmail 63991 invoked by uid 500); 13 Feb 2013 00:07:16 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 63923 invoked by uid 500); 13 Feb 2013 00:07:16 -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 63824 invoked by uid 99); 13 Feb 2013 00:07:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Feb 2013 00:07:16 +0000 Date: Wed, 13 Feb 2013 00:07:15 +0000 (UTC) From: "Emmanuel Lecharny (JIRA)" To: dev@directory.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (DIRSERVER-1799) When deleting values from an existing entry, the presence index might get out of date MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Emmanuel Lecharny created DIRSERVER-1799: -------------------------------------------- Summary: When deleting values from an existing entry, the presence index might get out of date Key: DIRSERVER-1799 URL: https://issues.apache.org/jira/browse/DIRSERVER-1799 Project: Directory ApacheDS Issue Type: Bug Affects Versions: 2.0.0-M10 Reporter: Emmanuel Lecharny Priority: Critical Fix For: 2.0.0-M11 We use the reverse index to detect if an AT is not anymore present in an entry after a modification :: /* * If no attribute values exist for this entryId in the index then * we remove the presence index entry for the removed attribute. */ if ( null == index.reverseLookup( id ) ) { presenceIdx.drop( modsOid, id ); } If the AT index does not have a reverse index, this operation will do nothing, and the presence index will select entries which are not anymore useful. We should instead check if the Attribute is still existng after the modification, and if not, remove it from the presence index without checking into it. -- 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