[
https://issues.apache.org/jira/browse/DIRSERVER-1873?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13910316#comment-13910316
]
Carlo Accorsi commented on DIRSERVER-1873:
------------------------------------------
Thanks Guys!!! Can't wait to try it out..
> 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
> Assignee: Kiran Ayyagari
> Fix For: 2.0.0-M16
>
>
> 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 was sent by Atlassian JIRA
(v6.1.5#6160)