From dev-return-38342-apmail-directory-dev-archive=directory.apache.org@directory.apache.org Wed Jun 15 11:53:51 2011 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 019F34327 for ; Wed, 15 Jun 2011 11:53:51 +0000 (UTC) Received: (qmail 81239 invoked by uid 500); 15 Jun 2011 11:53:50 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 81202 invoked by uid 500); 15 Jun 2011 11:53:50 -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 81194 invoked by uid 99); 15 Jun 2011 11:53:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jun 2011 11:53:50 +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 (athena.apache.org: domain of elecharny@gmail.com designates 74.125.82.44 as permitted sender) Received: from [74.125.82.44] (HELO mail-ww0-f44.google.com) (74.125.82.44) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jun 2011 11:53:44 +0000 Received: by wwa36 with SMTP id 36so369559wwa.1 for ; Wed, 15 Jun 2011 04:53:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:reply-to:user-agent :mime-version:to:subject:content-type:content-transfer-encoding; bh=PNKBqeK/RPJRpnoWv10t1fKyKxeu9t4vosp9OMdymJU=; b=w4rqsePrYaJrqDdnMDe1xIbmfBprWVa9byTTxi9cMJlx/3N2Cjb5FjydJhZGgqLjVb 3HosSXPRDWQPjMlZ4j7k2l4jTnhUHb4HjU9o1HDbevl0pFvZLVn3fZmmmeDjLYqW74H9 TmiH+qmElPXgWxB9/quYDdiTgKDpC8Qx3dRYY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=BUtQIKI0UrqTU/F6pGgIEo+F5H+HGBWAwjuWJIuTc6LHTurJBZBUyDtMUq/l0KuqKL dEuGSCy73wCPox6Pf/RceBRiNEW278O7ELLIpQfU4GAM6hXwTVU6s9jzc0lGwb6g0FB1 UAc8f3yYCGmYwdRnAEzZJqE0wT6I5eiwSegD8= Received: by 10.227.201.144 with SMTP id fa16mr508911wbb.19.1308138803047; Wed, 15 Jun 2011 04:53:23 -0700 (PDT) Received: from emmanuel-lecharnys-MacBook-Pro.local (ran75-1-78-192-106-184.fbxo.proxad.net [78.192.106.184]) by mx.google.com with ESMTPS id e1sm290131wbh.22.2011.06.15.04.53.21 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 15 Jun 2011 04:53:22 -0700 (PDT) Message-ID: <4DF89D31.6090902@gmail.com> Date: Wed, 15 Jun 2011 13:53:21 +0200 From: Emmanuel Lecharny Reply-To: elecharny@apache.org User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: Apache Directory Developers List Subject: Is this intended, or should we consider that is a bug ? Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi, I'm wondering if the following code snippet is just a bug, or if this was intended : public PresenceEvaluator( PresenceNode node, Store db, SchemaManager schemaManager ) throws Exception { this.db = db; this.node = node; this.schemaManager = schemaManager; this.attributeType = node.getAttributeType(); if ( db.hasUserIndexOn( attributeType ) ) { idx = db.getPresenceIndex(); } else { idx = null; } } In my case, the AttributeType is ObjectClass, which is a System index. I find it extremely doubtful that we want to set idx to null in this very case. However, this is a part of the code I'm not really familiar with, so if any has some clue, I'd appreciate it. -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com