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 B61E84B97 for ; Wed, 8 Jun 2011 16:10:23 +0000 (UTC) Received: (qmail 80195 invoked by uid 500); 8 Jun 2011 16:10:23 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 80066 invoked by uid 500); 8 Jun 2011 16:10: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 79906 invoked by uid 99); 8 Jun 2011 16:10:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jun 2011 16:10:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jun 2011 16:10:19 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 949091085A0 for ; Wed, 8 Jun 2011 16:09:59 +0000 (UTC) Date: Wed, 8 Jun 2011 16:09:59 +0000 (UTC) From: "Emmanuel Lecharny (JIRA)" To: dev@directory.apache.org Message-ID: <32449408.3599.1307549399605.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (DIRSERVER-1570) Creating a Filter Node using names for filtered attributes throws a NPE MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DIRSERVER-1570?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Emmanuel Lecharny resolved DIRSERVER-1570. ------------------------------------------ Resolution: Cannot Reproduce I think it's an old issue. I can't find a way to reproduce it... > Creating a Filter Node using names for filtered attributes throws a NPE > ----------------------------------------------------------------------- > > Key: DIRSERVER-1570 > URL: https://issues.apache.org/jira/browse/DIRSERVER-1570 > Project: Directory ApacheDS > Issue Type: Bug > Affects Versions: 1.5.7 > Reporter: Emmanuel Lecharny > Fix For: 2.0.0-M1 > > > When trying to do a search using a cursor, defining a cursor this way : > EqualityNode filter = new EqualityNode( "objectClass", new StringValue( "test" ) ); > SearchControls controls = new SearchControls(); > controls.setSearchScope( scope.ordinal() ); > IndexCursor cursor = se.cursor( base, > AliasDerefMode.NEVER_DEREF_ALIASES, filter, controls ); > we will get a NPE because the node AT ("ObjectClass" is never converted to an AT. > The Node data structure ust be made schema aware too... -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira