Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 88898 invoked from network); 16 Dec 2008 23:42:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Dec 2008 23:42:09 -0000 Received: (qmail 77045 invoked by uid 500); 16 Dec 2008 23:42:22 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 76892 invoked by uid 500); 16 Dec 2008 23:42:22 -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 76883 invoked by uid 99); 16 Dec 2008 23:42:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Dec 2008 15:42:21 -0800 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED X-Spam-Check-By: apache.org Received: from [140.211.11.9] (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 16 Dec 2008 23:42:07 +0000 Received: (qmail 88767 invoked from network); 16 Dec 2008 23:41:45 -0000 Received: from localhost (HELO ?127.0.0.1?) (127.0.0.1) by localhost with SMTP; 16 Dec 2008 23:41:45 -0000 Message-ID: <49483CB7.8090602@apache.org> Date: Wed, 17 Dec 2008 00:41:43 +0100 From: Stefan Seelmann User-Agent: Thunderbird 2.0.0.18 (X11/20081125) MIME-Version: 1.0 To: Apache Directory Developers List Subject: Re: [Aliases] Questions ... References: <4947CDA0.7040103@nextury.com> In-Reply-To: <4947CDA0.7040103@nextury.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, Emmanuel Lecharny wrote: > Hi guys, > > First, we have an open issue since 1.0 version : DIRSERVER-803 > (https://issues.apache.org/jira/browse/DIRSERVER-803). This is a special > case : we create an alias which is linked to an ancestor. Questions : > 1) Should we allow such aliases ? Currently, it's rejected and seen as a > loop. Is it necessary for the standard certification? Then we need to allow it. > 2) If we allow such aliases, how should we detect that we are not > looping when doing a subtree search ? We could put all DNs of traversed aliases (only aliases not normal entries) to a Set or Map during the search. > 3) What about cross referencing alias (ie alias A refers to alias B and > vice versa) ? This should be valid. I think it depends on the alias dereferncing mode if this would cause a loop or not. So we need to check for a loop while finding the search base and while performing the search. > We have options, as we maintain a cache internally with all the entries > which are not aliases ( a bit like what we do with referrals), but as we > may have order of magnitudes more non-aliases than aliases, this sounds > a bit weird to me. Shouldn't we create a cache of entries which are > referrals instead of the opposite ? This is what we do for the > referrals, and we initiate this cache when starting the server, reading > all the entries with the referral AT. Yes, makes totally sense. Sorry, I'm to tired to answer more, maybe tomorrow. Regards, Stefan