Uploaded image for project: 'Directory ApacheDS'
  1. Directory ApacheDS
  2. DIRSERVER-1748

EqualityEvaluator does not work correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 2.0.0-M8
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            elecharny Emmanuel Lécharny
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: