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 EB26D1018C for ; Sat, 30 Nov 2013 09:48:48 +0000 (UTC) Received: (qmail 2444 invoked by uid 500); 30 Nov 2013 09:48:46 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 2383 invoked by uid 500); 30 Nov 2013 09:48:39 -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 2365 invoked by uid 99); 30 Nov 2013 09:48:36 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Nov 2013 09:48:36 +0000 Date: Sat, 30 Nov 2013 09:48:36 +0000 (UTC) From: "Kiran Ayyagari (JIRA)" To: dev@directory.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DIRSERVER-1921) Indexes dont work on distinguishedNameMatch attributeType 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/DIRSERVER-1921?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13835648#comment-13835648 ] Kiran Ayyagari commented on DIRSERVER-1921: ------------------------------------------- I have recently implemented a DN comparator as shown below, which does not depend on the string values: public int compare( Dn dn1, Dn dn2 ) { if( dn1.isAncestorOf( dn2 ) ) { return -1; } else if( dn2.isAncestorOf( dn1 ) ) { return 1; } else if ( dn1.equals( dn2 ) ) { return 0; } return 1; } > Indexes dont work on distinguishedNameMatch attributeType > --------------------------------------------------------- > > Key: DIRSERVER-1921 > URL: https://issues.apache.org/jira/browse/DIRSERVER-1921 > Project: Directory ApacheDS > Issue Type: Bug > Components: core > Affects Versions: 2.0.0-M15 > Reporter: lucas theisen > Priority: Critical > Labels: patch, test > Fix For: 2.0.0-RC1 > > Attachments: patch.txt > > > When attempting to add an index for an attribute that uses distinguishedNameMatch, items are not found. I will attach a patch for the JdbmIndexTest that demonstrates the issue. -- This message was sent by Atlassian JIRA (v6.1#6144)