Details
Description
Here is a variant of DIRSERVER-643 (already resolved):
If the attribute set is created like this:
...
LDAPAttributeSet attrs = new LDAPAttributeSet();
LDAPAttribute ocls = new LDAPAttribute("objectclass", new String[]
);
attrs.add(ocls);
attrs.add(new LDAPAttribute("sn", "Bush"));
String descr[] =
{ "a British singer-songwriter with an expressive four-octave voice", "one of the most influential female artists of the twentieth century" };
attrs.add(new LDAPAttribute("description", descr[0]));
attrs.add(new LDAPAttribute("cn", "Kate Bush"));
attrs.add(new LDAPAttribute("description", descr[1]));
...
The entry which is created afterwards still misses one of the description values.
I attach a JUnit test case which contains the old test case and two variants – one of them (testAddEntryWithTwoDescriptionsSecondVariant) fails with the current 1.0 branch. I have checked the test case with IBM Tivoli Directory Server 6.0 and Sun Java System Directory Server 5.2 – with both servers the test case passed completely.
Attachments
Attachments
Issue Links
- is related to
-
DIRSERVER-643 Netscape SDK: Adding an entry with two description attributes does not combine values.
- Closed