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 2010/10/20 14:34:25 UTC

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

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-RC1


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.
-
You can reply to this email to add a comment to the issue online.