directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (DIRSERVER-1570) Creating a Filter Node using names for filtered attributes throws a NPE
Date Wed, 08 Jun 2011 16:09:59 GMT

     [ 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<Long, Entry, Long> 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

Mime
View raw message