Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 81495 invoked from network); 21 Dec 2006 18:12:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Dec 2006 18:12:45 -0000 Received: (qmail 37179 invoked by uid 500); 21 Dec 2006 18:12:49 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 37152 invoked by uid 500); 21 Dec 2006 18:12:49 -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 37136 invoked by uid 99); 21 Dec 2006 18:12:49 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Dec 2006 10:12:49 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= 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; Thu, 21 Dec 2006 10:12:41 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0BF9C714293 for ; Thu, 21 Dec 2006 10:12:21 -0800 (PST) Message-ID: <21111620.1166724741046.JavaMail.jira@brutus> Date: Thu, 21 Dec 2006 10:12:21 -0800 (PST) From: "Stefan Zoerner (JIRA)" To: dev@directory.apache.org Subject: [jira] Created: (DIRSERVER-803) Creating an alias from a child entry to the ancestor causes an error (return code 36) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Creating an alias from a child entry to the ancestor causes an error (return code 36) ------------------------------------------------------------------------------------- Key: DIRSERVER-803 URL: http://issues.apache.org/jira/browse/DIRSERVER-803 Project: Directory ApacheDS Issue Type: Bug Affects Versions: 1.0 Environment: * ApacheDS 1.0.0 * Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03) * Windows XP Professional SP2 Reporter: Stefan Zoerner Priority: Minor It fails to import the following two entries into ApacheDS 1.0 (default server.xml). The second entry is an alias to the first one, and is directly located below the first entry: dn: ou=Singers,dc=example,dc=com ou: Singers objectclass: top objectclass: organizationalUnit dn: ou=Songwriters,ou=Singers,dc=example,dc=com ou: Songwriters objectclass: top objectclass: organizationalUnit objectclass: alias aliasedobjectname: ou=Singers,dc=example,dc=com Here is the result I got from an ldapmodify attempt: $ ldapmodify -h localhost -p 10389 -D "uid=admin,ou=system" -w ****** -q -c -a -f aliasSingers.ldif ldap_add: Unknown error ldap_add: additional info: failed to add entry ou=Songwriters,ou=Singers,dc=example,dc=com: [36] aliasDereferencingProblem - attempt to create alias with cycle to relative ou=Singers,dc=example,dc=com not allowed from descendent alias 2.5.4.11=songwriters,2.5.4.11=singers,0.9.2342.19200300.100.1.25=example,0.9.2342.19200300.100.1.25=com It seems that ApacheDS does not allow to create an alias from a descendant. I tried the same with Tivoli Directory Server 6.0 and Sun Java System Directory Server 5.2, both allowed this constellation. Find attached a JNDI JUnit test which is able to cause the error by adding two entries programmatically. -- 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