Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 98EB263F2 for ; Thu, 16 Jun 2011 11:01:03 +0000 (UTC) Received: (qmail 22899 invoked by uid 500); 16 Jun 2011 11:01:03 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 22826 invoked by uid 500); 16 Jun 2011 11:01:03 -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 22819 invoked by uid 99); 16 Jun 2011 11:01:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2011 11:01:03 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ayyagarikiran@gmail.com designates 209.85.220.178 as permitted sender) Received: from [209.85.220.178] (HELO mail-vx0-f178.google.com) (209.85.220.178) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2011 11:00:56 +0000 Received: by vxc11 with SMTP id 11so1252012vxc.37 for ; Thu, 16 Jun 2011 04:00:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=hKpeLHmsM/UNbxv6BnhF/E6O9VNCIj00WbhMr/Viav4=; b=ga/gduZwOucG1o/XhiihbkecgkxujPt0isdWgDkIxSLzH7VC5SmChVyL/6COGY09Jf wxW9nZ72xcFOclDYnU0iHmNMgYZ+DybZiKBgDpN209y5var6L0QLbLHEG9YHpYxML9Dw OLMbQNjO3fB5tgV1xUMAWNM9k8xUbQe1BarDk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=uHPRG7SOqNFhAK2RS+pJCNLIXIeunA+MZHnrkGyPznlJtNO3qNdORWTfFSFPaQr3jS Jkdq7LSCo791eU5D70vfgkGVOXtl2p6MNtvJ7R+cQX9KqE8pg8RbswGoLWV/Y6jX0mFt bwpv1ghT2VwqLMSlddf0rEi2l/5I+h4gJwgXc= MIME-Version: 1.0 Received: by 10.52.159.202 with SMTP id xe10mr1013960vdb.263.1308222035937; Thu, 16 Jun 2011 04:00:35 -0700 (PDT) Sender: ayyagarikiran@gmail.com Received: by 10.52.185.169 with HTTP; Thu, 16 Jun 2011 04:00:35 -0700 (PDT) In-Reply-To: <4DF9CB33.8000008@gmail.com> References: <4DF9CB33.8000008@gmail.com> Date: Thu, 16 Jun 2011 16:30:35 +0530 X-Google-Sender-Auth: Y1psCjku0UagmEToKAonwvinsxs Message-ID: Subject: Re: Morning thoughts about alias handling... From: Kiran Ayyagari To: Apache Directory Developers List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Thu, Jun 16, 2011 at 2:51 PM, Emmanuel Lecharny wr= ote: > Hi, > > so I slept on the problem, and here are a few thoughts I had this morning= : > - first, the alias handling can't be done in the doSimpleSearch() as I > thought, because if we do so, alias dereferencing won't be handled when > using the coreSession. It must be handled by the EntryFilteringCursor. > Remains to see how to implement that there. > - second, we may have some issue when an alias points to a non existing > entry. What will the cursor.next() return in this case ? The alias exists= , > so the cursor.next() will move forward, to something that does not exist > (this is a Pierre-Arnaud thought). hmm, if the aliased entry doesn't exist the cursor shouldn't move forward > - third, we have to fix the reverter, which doe snot handle correctly ali= as > removal, if the entry which is pointed doe snot exist anymore. There is a > JIRA for that issue. > > I'll do my best today to get something done. > > -- > Regards, > Cordialement, > Emmanuel L=E9charny > www.iktek.com > > --=20 Kiran Ayyagari