Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 78129 invoked from network); 9 Jul 2008 18:16:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Jul 2008 18:16:23 -0000 Received: (qmail 50179 invoked by uid 500); 9 Jul 2008 18:16:23 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 50134 invoked by uid 500); 9 Jul 2008 18:16:23 -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 50123 invoked by uid 99); 9 Jul 2008 18:16:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2008 11:16:22 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2008 18:15:39 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B0113234C15C for ; Wed, 9 Jul 2008 11:15:31 -0700 (PDT) Message-ID: <1082357049.1215627331720.JavaMail.jira@brutus> Date: Wed, 9 Jul 2008 11:15:31 -0700 (PDT) From: "Emmanuel Lecharny (JIRA)" To: dev@directory.apache.org Subject: [jira] Resolved: (DIRSERVER-1150) No error thrown when removing a non existing value of an attribute In-Reply-To: <761882802.1205502865306.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 [ https://issues.apache.org/jira/browse/DIRSERVER-1150?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Emmanuel Lecharny resolved DIRSERVER-1150. ------------------------------------------ Resolution: Fixed The following test demonstrates that the userCertificate;binary attribute is working on the server, and that the certificate is not modified. There may be a bug in Studio, however. public void testAddNewBinaryAttributeValue() throws NamingException { // Add a binary attribute byte[] newValue = new byte[]{0x00, 0x01, 0x02, 0x03}; Attributes attrs = new AttributesImpl( "userCertificate;binary", newValue ); ctx.modifyAttributes( RDN_TORI_AMOS, DirContext.ADD_ATTRIBUTE, attrs ); // Verify, that attribute value is added attrs = ctx.getAttributes( RDN_TORI_AMOS ); Attribute attr = attrs.get( "userCertificate" ); assertNotNull( attr ); assertTrue( attr.contains( newValue ) ); byte[] certificate = (byte[])attr.get(); assertTrue( Arrays.equals( newValue, certificate ) ); assertEquals( 1, attr.size() ); } > No error thrown when removing a non existing value of an attribute > ------------------------------------------------------------------ > > Key: DIRSERVER-1150 > URL: https://issues.apache.org/jira/browse/DIRSERVER-1150 > Project: Directory ApacheDS > Issue Type: Bug > Affects Versions: 1.5.1 > Reporter: Pierre-Arnaud Marcelot > Assignee: Emmanuel Lecharny > Fix For: 1.5.3 > > > It's possible with Apache DS 1.5.1 and the latest trunk to execute a request where you remove a non existing value of an attribute. > This request return a SUCCES response. > I think an Error Response should be returned instead, as OpenLDAP does, indicating that the value does not exist. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.