Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 89219 invoked from network); 12 Jun 2006 20:38:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Jun 2006 20:38:42 -0000 Received: (qmail 81394 invoked by uid 500); 12 Jun 2006 20:38:41 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 81358 invoked by uid 500); 12 Jun 2006 20:38:41 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 81343 invoked by uid 99); 12 Jun 2006 20:38:41 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jun 2006 13:38:41 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jun 2006 13:38:40 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2B3437141FA for ; Mon, 12 Jun 2006 20:37:30 +0000 (GMT) Message-ID: <2097755.1150144650173.JavaMail.jira@brutus> Date: Mon, 12 Jun 2006 20:37:30 +0000 (GMT+00:00) From: "Stefan Zoerner (JIRA)" To: dev@directory.apache.org Subject: [jira] Updated: (DIRSERVER-643) Netscape SDK: Adding an entry with two description attributes does not combine values. In-Reply-To: <11722250.1150143329857.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DIRSERVER-643?page=all ] Stefan Zoerner updated DIRSERVER-643: ------------------------------------- Priority: Minor (was: Major) Priority "minor" is more appropriate here. Most of our users will never ever see this situation. Sorry for the wrong level when I raised the issue. > Netscape SDK: Adding an entry with two description attributes does not combine values. > -------------------------------------------------------------------------------------- > > Key: DIRSERVER-643 > URL: http://issues.apache.org/jira/browse/DIRSERVER-643 > Project: Directory ApacheDS > Type: Bug > Versions: 1.0-RC3 > Environment: ApacheDS 1.0 RC 3 > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05) > Microsoft Windows XP version 5.1 Service Pack 1 > Reporter: Stefan Zoerner > Priority: Minor > Attachments: AddDupplicateAttributeTest.java > > Here is a strange behavior, which I am only able to demonstrate with Netscape LDAP SDK for Java (or compatible APIs like Sun or Mozilla). I create an LDAPEntry with two separate LDAPAttribute objects for two description values in the LDAPAttributeSet. > ... > LDAPAttributeSet attrs = new LDAPAttributeSet(); > LDAPAttribute ocls = new LDAPAttribute("objectclass", new String[] { "top", "person" }); > attrs.add(ocls); > attrs.add(new LDAPAttribute("sn", "Bush")); > attrs.add(new LDAPAttribute("cn", "Kate 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("description", descr[1])); > ... > After creation, the outcome is an entry within ApacheDS with only one of the description values: > dn: cn=Kate Bush,dc=example,dc=com > objectclass: top > objectclass: person > cn: Kate Bush > sn: Bush > description: one of the most influential female artists of the twentieth century > I attach the complete code as a JUnit test case. The code (and the test case) works with other LDAP servers (Sun Java System Directory Server 5.2 for instance) as expected (entry with two description values). > I was not able to create a comparable problem with an add operation with JNDI. I assume that the corresponding BasicAttributes class within JNDI and its LDAP provider combines/consolidates the attributes on its own, which results in one attribute with two values. -- 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 - For more information on JIRA, see: http://www.atlassian.com/software/jira