Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 70924 invoked from network); 11 Jun 2007 13:33:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jun 2007 13:33:47 -0000 Received: (qmail 64716 invoked by uid 500); 11 Jun 2007 13:33:50 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 64596 invoked by uid 500); 11 Jun 2007 13:33:50 -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 64584 invoked by uid 99); 11 Jun 2007 13:33:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jun 2007 06:33:50 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jun 2007 06:33:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 169597141FA for ; Mon, 11 Jun 2007 06:33:26 -0700 (PDT) Message-ID: <28418991.1181568806089.JavaMail.jira@brutus> Date: Mon, 11 Jun 2007 06:33:26 -0700 (PDT) From: "Emmanuel Lecharny (JIRA)" To: dev@directory.apache.org Subject: [jira] Resolved: (DIRSERVER-967) Creating a subcontext is not possible with only a Name In-Reply-To: <31038242.1181567366059.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-967?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Emmanuel Lecharny resolved DIRSERVER-967. ----------------------------------------- Resolution: Fixed Fixed in 1.0 : http://svn.apache.org/viewvc?view=rev&rev=546142 and http://svn.apache.org/viewvc?view=rev&rev=546143 Fixed in 1.5 : http://svn.apache.org/viewvc?view=rev&rev=546144 and http://svn.apache.org/viewvc?view=rev&rev=546145 > Creating a subcontext is not possible with only a Name > ------------------------------------------------------ > > Key: DIRSERVER-967 > URL: https://issues.apache.org/jira/browse/DIRSERVER-967 > Project: Directory ApacheDS > Issue Type: Bug > Affects Versions: 1.0.2, 1.5.0 > Reporter: Emmanuel Lecharny > Assignee: Emmanuel Lecharny > Fix For: 1.5.1, 1.0.3 > > > If one wants to create an entry using : > ctx.createSubcontext( Name ) > the server fails, because it expect a cn attribute to be present. This is not good, as stated here : http://java.sun.com/products/jndi/jndi-ldap-gl.html#API > DirContext.createSubcontext > "...Perform an LDAP add operation to create the named entry and its associated attributes. If no attributes are supplied then the objectClass attribute is generated with the values top and javaContainer (javaContainer is a structural class that is necessary to avoid a schema violation error)..." > This is due to the fact that the objectClass is not correctly added : > attributes.put( JavaLdapSupport.OBJECTCLASS_ATTR, JavaLdapSupport.JCONTAINER_ATTR ); > attributes.put( JavaLdapSupport.OBJECTCLASS_ATTR, JavaLdapSupport.TOP_ATTR ); > the second attribute value replaces the first one. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.