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] Created: (DIRSERVER-1570) Creating a Filter Node using names for filtered attributes throws a NPE
Date Wed, 20 Oct 2010 12:34:25 GMT
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.


Mime
View raw message