Issue Details (XML | Word | Printable)

Key: DIRSERVER-194
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Vincent Tence
Reporter: Emmanuel Lecharny
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Directory ApacheDS

LdapName comparison must be case-insensitive for attibutType

Created: 05/Feb/05 12:55 PM   Updated: 07/Feb/06 02:41 PM
Return to search
Component/s: ldap
Affects Version/s: pre-1.0
Fix Version/s: pre-1.0

Time Tracking:
Not Specified

Resolution Date: 23/Oct/05 02:22 AM


 Description  « Hide
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





 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Vincent Tence made changes - 20/Feb/05 03:31 AM
Field Original Value New Value
Assignee Alex Karasulu [ akarasulu ] Vincent Tence [ vtence ]
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 0.8.1 [ 11066 ]
Vincent Tence made changes - 20/Feb/05 04:09 AM
Resolution Fixed [ 1 ]
Status Resolved [ 5 ] Reopened [ 4 ]
Alex Karasulu made changes - 30/Aug/05 05:11 PM
Fix Version/s 0.9.2 [ 12310220 ]
Fix Version/s 0.9.3 [ 12310221 ]
Emmanuel Lecharny made changes - 23/Oct/05 02:22 AM
Resolution Fixed [ 1 ]
Status Reopened [ 4 ] Closed [ 6 ]
Alex Karasulu made changes - 07/Feb/06 02:41 PM
Key DIRLDAP-35 DIRSERVER-194
Affects Version/s pre-1.0 [ 12310782 ]
Fix Version/s 0.9.3 [ 12310221 ]
Fix Version/s pre-1.0 [ 12310782 ]
Component/s ldap [ 12310715 ]
Project Directory LDAP [ 10514 ] ApacheDS [ 12310260 ]
Component/s Common [ 11085 ]