Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 52801 invoked from network); 9 Sep 2005 03:14:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Sep 2005 03:14:35 -0000 Received: (qmail 18589 invoked by uid 500); 9 Sep 2005 03:14:34 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 18464 invoked by uid 500); 9 Sep 2005 03:14:34 -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 18448 invoked by uid 99); 9 Sep 2005 03:14:33 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Sep 2005 20:14:32 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 1643031D for ; Fri, 9 Sep 2005 05:14:31 +0200 (CEST) Message-ID: <111751432.1126235671089.JavaMail.jira@ajax.apache.org> Date: Fri, 9 Sep 2005 05:14:31 +0200 (CEST) From: "Endi S. Dewata (JIRA)" To: dev@directory.apache.org Subject: [jira] Updated: (DIREVE-245) Add operation with capital letters in the suffix failed. In-Reply-To: <220657279.1126125030730.JavaMail.jira@ajax.apache.org> 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/DIREVE-245?page=all ] Endi S. Dewata updated DIREVE-245: ---------------------------------- Attachment: DIREVE-245.patch Attached is a patch containing the fix and the test case. > Add operation with capital letters in the suffix failed. > -------------------------------------------------------- > > Key: DIREVE-245 > URL: http://issues.apache.org/jira/browse/DIREVE-245 > Project: Directory Server > Type: Bug > Components: server main > Versions: 0.9.3 > Reporter: Endi S. Dewata > Assignee: Alex Karasulu > Attachments: DIREVE-245.patch, MixedCaseTest.java > > Set up a partition with dc=Apache,dc=Org as the suffix. Run the server then add the following entry: > dn: ou=users,dc=Apache,dc=Org > objectClass: organizationalUnit > ou: users > The operation will fail with a return code of 32 (no such object). > When an add operation is issued, the server calls the DefaultContextPartitionNexus.hasEntry() which in turn calls DefaultContextPartitionNexus.getBackend(). The current getBackend() implementation requires that the DN parameter has to be normalized. However, the DN parameter coming from hasEntry() is not normalized, causing it to fail finding the appropriate backend. So, either the getBackend() has to be modified to normalize the parameter, or all callers have to be checked to make sure they normalize the parameter first. -- 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