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 2E0C110592 for ; Tue, 23 Jul 2013 21:06:55 +0000 (UTC) Received: (qmail 81119 invoked by uid 500); 23 Jul 2013 21:06:52 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 80372 invoked by uid 500); 23 Jul 2013 21:06:51 -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 79951 invoked by uid 99); 23 Jul 2013 21:06:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jul 2013 21:06:51 +0000 Date: Tue, 23 Jul 2013 21:06:50 +0000 (UTC) From: "Carlo Accorsi (JIRA)" To: dev@directory.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (DIRSERVER-1873) Searching on member attribute (multivalued) for groups is not working as expected MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Carlo Accorsi created DIRSERVER-1873: ---------------------------------------- Summary: Searching on member attribute (multivalued) for groups is not working as expected Key: DIRSERVER-1873 URL: https://issues.apache.org/jira/browse/DIRSERVER-1873 Project: Directory ApacheDS Issue Type: Bug Components: core Affects Versions: 2.0.0-M14 Environment: Windows 32 + Java 1.6 Reporter: Carlo Accorsi Hi, I have this index on my partition for the member attribute. dn: ads-indexAttributeId=member,ou=indexes,ads-partitionId=cpro,ou=partitions,ads-directoryServiceId=default,ou=config ads-indexattributeid: member ads-indexHasReverse: FALSE ads-indexcachesize: 100 objectclass: ads-index objectclass: ads-jdbmIndex objectclass: ads-base objectclass: top ads-enabled: TRUE Here is an example of two groups. Test1 has 1 member , Test2 has 2. #begin ldif version: 1 dn: uid=1374604692150,ou=groups,ou=int,o=cpro objectClass: uidObject objectClass: groupOfNames objectClass: top cn: Test1 member: uid=1374609919999,ou=users,ou=int,o=cpro uid: 1374604692150 description: Test1 dn: uid=1374604692151,ou=groups,ou=int,o=cpro objectClass: uidObject objectClass: groupOfNames objectClass: top cn: Test2 member: uid=1374609919999,ou=users,ou=int,o=cpro member: uid=1374609910000,ou=users,ou=int,o=cpro uid: 1374604692151 description: Test2 #end ldif Created the group and performed the following searches using Apache directory studio Version: 2.0.0.v20130131 Substring Search for (member=*) - PASS Both entries returned - OK Exact Search for (member=uid=1374609910000,ou=users,ou=int,o=cpro) - PASS Test 2 is returned. (hunch - value exists only once in index and so it works) Exact Search for (member=uid=1374609919999,ou=users,ou=int,o=cpro) - FAIL No entries returned, however all should. Substring Search for (member=u*) - FAIL No entries returned. Expected same result as (member=*) If i change the index definition to ads-indexHasReverse: I get the same results Let me know if i can help. Thanks! -- 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