
|
If you were logged in you would be able to see more operations.
|
|
|
| Resolution Date: |
12/Aug/05 11:01 AM
|
|
class org.apache.ldap.common.name.LdapName, method compareTo should return 0 if we compare two RDN which contains multi-valued attributes like :
cn=test+cn=result
must be equals to
cn=result+cn=test
This is not the case. Here is a test case (to be added to class org.apache.ldap.common.name.LdapNameTest) :
/**
* Test the equivalence of two DNs with multi-valued RDN. AttributeType are
* not case sensitive. Each attribute type MUST be compared. Order MUST not
* matters They MUST be equals.
*
* @throws NamingException if anything goes wrong.
*/
public void testInsensitiveTypeMultiValuedAttributNotOrdered() throws NamingException
{
Name name1 = new LdapName("cn=HomeDir+cn=WorkDir");
Name name2 = new LdapName("cn=WorkDir+cn=HomeDir");
assertEquals(name1.compareTo(name2), 0);
}
|
|
Description
|
class org.apache.ldap.common.name.LdapName, method compareTo should return 0 if we compare two RDN which contains multi-valued attributes like :
cn=test+cn=result
must be equals to
cn=result+cn=test
This is not the case. Here is a test case (to be added to class org.apache.ldap.common.name.LdapNameTest) :
/**
* Test the equivalence of two DNs with multi-valued RDN. AttributeType are
* not case sensitive. Each attribute type MUST be compared. Order MUST not
* matters They MUST be equals.
*
* @throws NamingException if anything goes wrong.
*/
public void testInsensitiveTypeMultiValuedAttributNotOrdered() throws NamingException
{
Name name1 = new LdapName("cn=HomeDir+cn=WorkDir");
Name name2 = new LdapName("cn=WorkDir+cn=HomeDir");
assertEquals(name1.compareTo(name2), 0);
}
|
Show » |
made changes - 12/Aug/05 06:46 AM
| Field |
Original Value |
New Value |
|
Fix Version/s
|
|
0.9.2
[ 12310220
]
|
made changes - 12/Aug/05 07:56 AM
|
Status
|
Open
[ 1
]
|
In Progress
[ 3
]
|
made changes - 12/Aug/05 11:01 AM
|
Status
|
In Progress
[ 3
]
|
Resolved
[ 5
]
|
|
Resolution
|
|
Fixed
[ 1
]
|
made changes - 07/Feb/06 02:41 PM
|
Project
|
Directory LDAP
[ 10514
]
|
ApacheDS
[ 12310260
]
|
|
Affects Version/s
|
|
pre-1.0
[ 12310782
]
|
|
Key
|
DIRLDAP-36
|
DIRSERVER-202
|
|
Fix Version/s
|
|
pre-1.0
[ 12310782
]
|
|
Fix Version/s
|
0.9.2
[ 12310220
]
|
|
|
Component/s
|
|
ldap
[ 12310715
]
|
made changes - 24/Jun/06 08:55 PM
|
Status
|
Resolved
[ 5
]
|
Closed
[ 6
]
|
|
http://svn.apache.org/viewcvs.cgi?rev=232182&view=rev