Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
None
-
None
-
None
Description
When we use the EqualityEvaluator as the main cursor, it does not return correct results, because the ldapComparator is not set if the AT has an index on it :
public EqualityEvaluator( EqualityNode<T> node, Store<Entry, ID> db, SchemaManager schemaManager )
throws Exception
{
super( node, db, schemaManager );
if ( db.hasIndexOn( attributeType ) )
{
idx = ( Index<T, Entry, ID> ) db.getIndex( attributeType );
normalizer = null;
ldapComparator = null;
...
We should always initialize the normalizer and ldapcomparator.