Uploaded image for project: 'Directory Client API'
  1. Directory Client API
  2. DIRAPI-87

The search() method does not return the same result if it's done with a SearchRequest or with parameters

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Critical
    • Resolution: Invalid
    • Affects Version/s: 1.0.0-M12
    • Fix Version/s: 1.0.0-M13
    • Labels:
      None

      Description

      The search method returns two different cursors, depending on which parameters we pass. This is not coherent.
      SearchCursor search( SearchRequest searchRequest )
      EntryCursor search( String baseDn, String filter, SearchScope scope, String... attributes )

        Activity

        Hide
        elecharny Emmanuel Lecharny added a comment -

        We should always return an EntryCursor

        Show
        elecharny Emmanuel Lecharny added a comment - We should always return an EntryCursor
        Hide
        elecharny Emmanuel Lecharny added a comment -

        Rahhh, nah...

        The fact is that when we use search ( SearchRequest ), we will get back an instance of a SearchResult, and not an entry. Then we will potentially receive an Entry, or a referral, or a SearchResultDone.

        This is on purpose :/

        Show
        elecharny Emmanuel Lecharny added a comment - Rahhh, nah... The fact is that when we use search ( SearchRequest ), we will get back an instance of a SearchResult, and not an entry. Then we will potentially receive an Entry, or a referral, or a SearchResultDone. This is on purpose :/

          People

          • Assignee:
            Unassigned
            Reporter:
            elecharny Emmanuel Lecharny
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development