Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 91831 invoked from network); 8 Aug 2006 04:44:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Aug 2006 04:44:58 -0000 Received: (qmail 23046 invoked by uid 500); 8 Aug 2006 04:44:57 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 22828 invoked by uid 500); 8 Aug 2006 04:44:57 -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 22817 invoked by uid 99); 8 Aug 2006 04:44:57 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Aug 2006 21:44:57 -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, 07 Aug 2006 21:44:56 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E2E9C71429F for ; Tue, 8 Aug 2006 04:42:14 +0000 (GMT) Message-ID: <28429958.1155012134925.JavaMail.jira@brutus> Date: Mon, 7 Aug 2006 21:42:14 -0700 (PDT) From: "Alex Karasulu (JIRA)" To: dev@directory.apache.org Subject: [jira] Assigned: (DIRSERVER-701) Replacing an existing attribute with an attribute with no values leads to an (illegal) attribute with empty value In-Reply-To: <12348264.1154981473995.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-701?page=all ] Alex Karasulu reassigned DIRSERVER-701: --------------------------------------- Assignee: Alex Karasulu > Replacing an existing attribute with an attribute with no values leads to an (illegal) attribute with empty value > ----------------------------------------------------------------------------------------------------------------- > > Key: DIRSERVER-701 > URL: http://issues.apache.org/jira/browse/DIRSERVER-701 > Project: Directory ApacheDS > Issue Type: Bug > Affects Versions: 1.0-RC4 > Environment: * ApacheDS 1.0 RC4 SNAPSHOT > * Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03) > * Windows XP Professional SP2 > Reporter: Stefan Zoerner > Assigned To: Alex Karasulu > Attachments: AttributeRemovalByReplacementTest.java > > > If someone tries to replace an existing attribute with an attribute with no values (modify op), it is expected that the attribute is removed. In Apache DS (curent 1.0 branch), this is not the case. > The attached test case creates an inetOrgPerson entry and tries to remove the givenname attribute with the following lines: > ... > // replace attribute givenName with empty value (=> deletion) > Attribute attr = new BasicAttribute("givenname"); > ModificationItem item = new ModificationItem(DirContext.REPLACE_ATTRIBUTE, attr); > ctx.modifyAttributes(rdn, new ModificationItem[] { item }); > ... > The operation does not cause an error, but afterwards the givenname attribute is still present in the entry (although it does not have any value). It is expected that the attribute givenname does not exist anymore within the entry. > The attached test case demonstrates the situation and passes on the following servers: > * Sun Java System Directory Server 5.2 > * OpenLDAP 2.3 > * IBM Tivoli Directory Server 6.0 > On Apache Directory Server 1.0 RC4 SNAPSHOT, it fails. > -- 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