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 A31209794 for ; Wed, 22 Feb 2012 12:26:18 +0000 (UTC) Received: (qmail 82324 invoked by uid 500); 22 Feb 2012 12:26:18 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 82274 invoked by uid 500); 22 Feb 2012 12:26:18 -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 82266 invoked by uid 99); 22 Feb 2012 12:26:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Feb 2012 12:26:18 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Feb 2012 12:26:12 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B7353334B27 for ; Wed, 22 Feb 2012 12:25:51 +0000 (UTC) Date: Wed, 22 Feb 2012 12:25:51 +0000 (UTC) From: "Emmanuel Lecharny (Created) (JIRA)" To: dev@directory.apache.org Message-ID: <1837837793.3996.1329913551751.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (DIRSERVER-1698) Search on entries with multiple AVA in RDN does not work crrectly if the initial RDN order is not used 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 Search on entries with multiple AVA in RDN does not work crrectly if the initial RDN order is not used ------------------------------------------------------------------------------------------------------ Key: DIRSERVER-1698 URL: https://issues.apache.org/jira/browse/DIRSERVER-1698 Project: Directory ApacheDS Issue Type: Bug Affects Versions: 2.0.0-M5 Reporter: Emmanuel Lecharny Fix For: 2.0.0-M6 If we create an entry using a RDN with multiple AVA, like this one : dn: cn=Doe+gn=John, ou=system ObjectClass: top ObjectClass: person cn: Doe gn: John sn: John Doe then searching for the entry using its DN with cn=Doe+gn=John, ou=system as a base, you'll get the entry. However, doing the same search but with the base DN gn=John+cn=Doe, ou=system, you will get nothing. This is due to the fact that the ParentIdAndRDN.compareTo() method use the String value of the RDN, so the ordering is dependent on the AVA position in the String. This is bad. We must rewrite the CcompareTo method to compare the AVA one by one in the correct order. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira