You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2012/05/11 15:19:51 UTC

[jira] [Created] (DIRAPI-87) The search() method does not return the same result if it's done with a SearchRequest or with parameters

Emmanuel Lecharny created DIRAPI-87:
---------------------------------------

             Summary: The search() method does not return the same result if it's done with a SearchRequest or with parameters
                 Key: DIRAPI-87
                 URL: https://issues.apache.org/jira/browse/DIRAPI-87
             Project: Directory Client API
          Issue Type: Improvement
    Affects Versions: 1.0.0-M12
            Reporter: Emmanuel Lecharny
            Priority: Critical
             Fix For: 1.0.0-M13


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 )

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (DIRAPI-87) The search() method does not return the same result if it's done with a SearchRequest or with parameters

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRAPI-87?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13273255#comment-13273255 ] 

Emmanuel Lecharny commented on DIRAPI-87:
-----------------------------------------

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 :/
                
> The search() method does not return the same result if it's done with a SearchRequest or with parameters
> --------------------------------------------------------------------------------------------------------
>
>                 Key: DIRAPI-87
>                 URL: https://issues.apache.org/jira/browse/DIRAPI-87
>             Project: Directory Client API
>          Issue Type: Improvement
>    Affects Versions: 1.0.0-M12
>            Reporter: Emmanuel Lecharny
>            Priority: Critical
>             Fix For: 1.0.0-M13
>
>
> 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 )

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (DIRAPI-87) The search() method does not return the same result if it's done with a SearchRequest or with parameters

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRAPI-87?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny closed DIRAPI-87.
-----------------------------------

    Resolution: Invalid
    
> The search() method does not return the same result if it's done with a SearchRequest or with parameters
> --------------------------------------------------------------------------------------------------------
>
>                 Key: DIRAPI-87
>                 URL: https://issues.apache.org/jira/browse/DIRAPI-87
>             Project: Directory Client API
>          Issue Type: Improvement
>    Affects Versions: 1.0.0-M12
>            Reporter: Emmanuel Lecharny
>            Priority: Critical
>             Fix For: 1.0.0-M13
>
>
> 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 )

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (DIRAPI-87) The search() method does not return the same result if it's done with a SearchRequest or with parameters

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRAPI-87?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13273243#comment-13273243 ] 

Emmanuel Lecharny commented on DIRAPI-87:
-----------------------------------------

We should always return an EntryCursor 
                
> The search() method does not return the same result if it's done with a SearchRequest or with parameters
> --------------------------------------------------------------------------------------------------------
>
>                 Key: DIRAPI-87
>                 URL: https://issues.apache.org/jira/browse/DIRAPI-87
>             Project: Directory Client API
>          Issue Type: Improvement
>    Affects Versions: 1.0.0-M12
>            Reporter: Emmanuel Lecharny
>            Priority: Critical
>             Fix For: 1.0.0-M13
>
>
> 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 )

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira