Uploaded image for project: 'Directory ApacheDS'
  1. Directory ApacheDS
  2. DIRSERVER-700

Adding an entry with two description attributes does not combine values, if attribute values are seperated

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0-RC3, 1.0-RC4
    • 1.0-RC4, 1.5.0
    • None
    • None
    • * ApacheDS 1.0 RC4 SNAPSHOT
      * Netscape LDAP SDK for Java 4.1
      * Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)
      * Windows XP Professional SP2

    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[]

      { "top", "person" }

      );
      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

        1. AddDupplicateAttributeTest.java
          4 kB
          Stefan Zoerner

        Issue Links

          Activity

            People

              Unassigned Unassigned
              szoerner Stefan Zoerner
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: