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

Emmanuel Lecharny resolved DIRSERVER-1727.
------------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0-M8

I can't beleive it tooks almost 5 months to get this stupid bug fixed :/ It was 
so obvious...

The BooleanComparator was not checking correctly the values.

Fixed with http://svn.apache.org/viewvc?rev=1393277&view=rev
                
> LDAP Searches against boolean attributes with booleanMatch equality never 
> return matches
> ----------------------------------------------------------------------------------------
>
>                 Key: DIRSERVER-1727
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1727
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 2.0.0-M6
>            Reporter: Richard Lowden
>             Fix For: 2.0.0-M8
>
>
> If you carry out a search trying to match on a boolean attribute (syntax: 
> 1.3.6.1.4.1.1466.115.121.1.7) and an equality matching rule of booleanMatch 
> then searching for classes with the attribute value equalling TRUE or FALSE 
> never return results.
> Changing the equality matching rule on the attribute to caseIgnoreMatch will 
> return results.
> Used to work in 1.5.7 but no longer works in 2.0.0-M6.
> To recreate try searching ober the ou=config entry for "ads-enabled = TRUE" 
> as per the example below from the search logs, which should return 
> "ads-directoryServiceId=default,ou=config" but returns no results.
> #!SEARCH REQUEST (667) OK
> #!CONNECTION ldap://localhost:10389
> #!DATE 2012-05-16T16:34:51.265
> # LDAP URL     : 
> ldap://localhost:10389/ou=config?objectClass?sub?(ads-enabled=TRUE)
> # command line : ldapsearch -H ldap://localhost:10389 -x -D 
> "uid=admin,ou=system" -W -b "ou=config" -s sub -a always -z 1000 
> "(ads-enabled=TRUE)" "objectClass"
> # baseObject   : ou=config
> # scope        : wholeSubtree (2)
> # derefAliases : derefAlways (3)
> # sizeLimit    : 1000
> # timeLimit    : 0
> # typesOnly    : False
> # filter       : (ads-enabled=TRUE)
> # attributes   : objectClass
> #!SEARCH RESULT DONE (667) OK
> #!CONNECTION ldap://localhost:10389
> #!DATE 2012-05-16T16:34:51.265
> # numEntries : 0

--
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

Reply via email to