directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Karasulu (JIRA)" <j...@apache.org>
Subject [jira] Closed: (DIRSERVER-951) Negated filter on indexed attribute doesn't find entries without attribute
Date Fri, 17 Aug 2007 05:54:30 GMT

     [ https://issues.apache.org/jira/browse/DIRSERVER-951?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alex Karasulu closed DIRSERVER-951.
-----------------------------------

    Resolution: Cannot Reproduce

I created a special integration test just for testing NOT operators in filters with the server
with both indexed and non-indexed attributes using with the NOT operator. Here's the test
case for this:

http://svn.apache.org/viewvc/directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/NegationOperatorITest.java?revision=566925&view=markup

For some reason I could not reproduce the bug which Martin you sited.  If you take a look
at the following tests which pass you'll see that (!(ou=drama)) successfully matches for Jack
Black and Joe Newbie.  According to this LDIF here:

http://svn.apache.org/viewvc/directory/apacheds/trunk/server-unit/src/test/resources/org/apache/directory/server/NegationOperatorITest.ldif?revision=566925&view=markup
 
Test to consider:
-----------------------
testSearchNotDrama()
testSearchNotDramaIndexed() [SHOULD FAIL]

Both succeed and Jack Black whose entry is returned does have the ou attribute but no 'drama'
value.  Also Joe Newbie is returned as well and this entry has no ou attribute all together.

So unless this can be reproduced some other way (feel free to add a test) then I'm going to
just mark this issue closed and not reproducable.

> Negated filter on indexed attribute doesn't find entries without attribute
> --------------------------------------------------------------------------
>
>                 Key: DIRSERVER-951
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-951
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.5.1
>            Reporter: Martin Alderson
>            Assignee: Alex Karasulu
>            Priority: Blocker
>             Fix For: 1.5.1
>
>
> Searching with filter (!(myAttribute=value)) will not find entries which do not have
a myAttribute attribute when that attribute is indexed.  When myAttribute is not indexed the
filter works as expected, finding all entries that either do not have the specified value
for myAttribute or do not have any values for myAttribute at all.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message