Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 88758 invoked from network); 8 Aug 2006 12:36:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Aug 2006 12:36:53 -0000 Received: (qmail 80958 invoked by uid 500); 8 Aug 2006 12:36:52 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 80910 invoked by uid 500); 8 Aug 2006 12:36:51 -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 80893 invoked by uid 99); 8 Aug 2006 12:36:51 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Aug 2006 05:36:51 -0700 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of aok123@bellsouth.net designates 205.152.59.72 as permitted sender) Received: from [205.152.59.72] (HELO imf24aec.mail.bellsouth.net) (205.152.59.72) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Aug 2006 05:36:50 -0700 Received: from ibm68aec.bellsouth.net ([65.80.200.112]) by imf24aec.mail.bellsouth.net with ESMTP id <20060808123629.ILSF25563.imf24aec.mail.bellsouth.net@ibm68aec.bellsouth.net> for ; Tue, 8 Aug 2006 08:36:29 -0400 Received: from [172.16.1.7] (really [65.80.200.112]) by ibm68aec.bellsouth.net with ESMTP id <20060808123628.ZKWS1187.ibm68aec.bellsouth.net@[172.16.1.7]> for ; Tue, 8 Aug 2006 08:36:28 -0400 Message-ID: <44D885A8.7020103@bellsouth.net> Date: Tue, 08 Aug 2006 08:38:00 -0400 From: Alex Karasulu User-Agent: Thunderbird 1.5.0.5 (X11/20060728) MIME-Version: 1.0 To: Apache Directory Developers List Subject: Re: svn commit: r429554 - in /directory/trunks/apacheds: core/src/main/java/org/apache/directory/server/core/exception/ core/src/main/java/org/apache/directory/server/core/schema/ server-unit/src/test/java/org/apache/directory/server/ References: <20060808032517.4052B1A981A@eris.apache.org> <44D83B14.2080304@levigo.de> In-Reply-To: <44D83B14.2080304@levigo.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Jörg Henne wrote: > Hi, > > akarasulu@apache.org wrote: >> + if ( ( subschemSubentryDn.toNormName() ).equalsIgnoreCase( >> base.toNormName() ) ) > > one of the issues I reported > (http://issues.apache.org/jira/browse/DIRSERVER-694) was a dupe (sorry!) > to the one you fixed. The patch I provided in two points, however: Ahhh you provided a patch. Sorry man I totally missed it because of the dup. Don't worry tho we got this one nipped anyways :). > - I relieved the ExceptionService from having to know the > subschemaSubentry DN which I think is nicer, because it opens up the > option of serving more "out-of-band" stuff like the subschemaSubentry > without needing to touch the ExceptionService every time. Hmmmm the exception service checks with the backend to see if an entry exists in it. Basically we need to tell it not to do this for the schemaSubentry since it is a special virtual entry. I'll have to look at the patch to see how you did this. Did the integration tests pass when you ran them after making this change? > - I stored the subschemaSubentry LdapDN in its normalized form, which > allowed me to compare the two LdapDNs simply with .equals(). This saves > a few string concatenations with the corresponding garbage. This may not > amount to much, but I've seen the quoted idiom quite a few times and all > such optimizations might really add up. Right good thinking! I thought I did this too. That way you don't have to normalize every time. Basically the interceptor builds the normalized LdapDN for the schema subentry in the init() method. NOTE: the toNormaName() maintains a cached String of the normalized name in the LdapDN. Alex