You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Vincent Tence (JIRA)" <di...@incubator.apache.org> on 2005/02/19 20:15:49 UTC

[jira] Reopened: (DIRLDAP-35) LdapName comparison must be case-insensitive for attibutType

     [ http://issues.apache.org/jira/browse/DIRLDAP-35?page=history ]
     
Vincent Tence reopened DIRLDAP-35:
----------------------------------


After reading the Name RFC, I realize I got it all wrong. It's not as trivial as I thought.

> LdapName comparison must be case-insensitive for attibutType
> ------------------------------------------------------------
>
>          Key: DIRLDAP-35
>          URL: http://issues.apache.org/jira/browse/DIRLDAP-35
>      Project: Directory LDAP
>         Type: Bug
>   Components: Common
>     Reporter: Emmanuel Lecharny
>     Assignee: Vincent Tence
>      Fix For: 0.8.1

>
> While comparing two DNs, the AttributeType of each RDN must be compared in a case-insensitive way : RFC 2251, chap. 4.1.4, par.4.
> It could be tricky to perform a valid comparison :
> A=V1+B=V2,C=GB and A=V1+b=V2,C=GB are equals in regards with the RFC,
> A=V1+B=V2,C=GB and A=V1+C=V2,C=GB are differents in regards with the RFC.
> LdapName.compareTo function does not return a valid result :
>         Name n1 = new DnParser().parse("A=V");
>         Name n2 = new DnParser().parse("a=V");
>         int val = n1.compareTo(n2);  // val = 0xffffffe0 instead of 0

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira