[ 
https://issues.apache.org/jira/browse/DIRSERVER-1296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12661163#action_12661163
 ] 

Emmanuel Lecharny commented on DIRSERVER-1296:
----------------------------------------------

As far as I can tell, if the AT is not indexed, then we fail back to a standard 
String comparator. Not very good ...

I'm currently debugging the server to be sure that explains the problem you 
have.

> integer attribute types are not compared correctly
> --------------------------------------------------
>
>                 Key: DIRSERVER-1296
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1296
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.5.4
>            Reporter: Lorenz Breu
>             Fix For: 1.5.5
>
>         Attachments: ComparableComparator.java, patch_SearchIT.txt, 
> SearchIT.java
>
>
> When searching for entries that have attributes with the INTEGER syntax, the 
> values are compared lexicographically, not numerically. This happens even if 
> the ordering and equality types are explicitly set to their integer versions 
> when injecting the attribute types into ADS.
> Example:
> dn: cn = foo, dc = example
> cn: foo
> integerAttribute: 435
> now a search using "(integerAttribute<=500)" will correctly return the 
> entry....
> but a search using "(integerAttribute<=44)" will ALSO return the entry, which 
> it clearly should not.

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

Reply via email to