directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve hammond (JIRA)" <>
Subject [jira] Created: (DIRSERVER-1577) An Empty cursor list blocks any other results
Date Wed, 27 Oct 2010 21:43:21 GMT
An Empty cursor list blocks any other results

                 Key: DIRSERVER-1577
             Project: Directory ApacheDS
          Issue Type: Bug
          Components: core
    Affects Versions: 2.0.0
         Environment: Windows Eclipse
            Reporter: Steve hammond

If I create a CursorList that itself contains cursor lists, any empty list causes the next()
function to return false.  In the below example if I change the order of adding to CursorList3
to add CursorList2 first, and then 1, this passes.  But the other order does not.

   public void testCursorList()
      throws Exception
      SearchOperationContext opContext = new SearchOperationContext(testSession);
      ArrayList<EntryFilteringCursor> cursorArray1 = new ArrayList<EntryFilteringCursor>();
      ArrayList<EntryFilteringCursor> cursorArray2 = new ArrayList<EntryFilteringCursor>();
      ArrayList<EntryFilteringCursor> cursorArray3 = new ArrayList<EntryFilteringCursor>();
      ArrayList<Entry> results = new ArrayList<Entry>();
      DefaultEntry entry = new DefaultEntry();
      cursorArray2.add(new BaseEntryFilteringCursor(new ListCursor<Entry>(results),
      CursorList cursorList1 = new CursorList(cursorArray1, opContext);
      CursorList cursorList2 = new CursorList(cursorArray2, opContext);
      CursorList cursorList3 = new CursorList(cursorArray3, opContext);


This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message