You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2011/06/08 18:09:59 UTC

[jira] [Resolved] (DIRSERVER-1570) Creating a Filter Node using names for filtered attributes throws a NPE

     [ 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