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 Lécharny (Jira)" <ji...@apache.org> on 2019/11/14 08:36:00 UTC

[jira] [Resolved] (DIRSERVER-2289) Paging support to retrieve all the entries available in ApacheDS between different client and LDAP server connections

     [ https://issues.apache.org/jira/browse/DIRSERVER-2289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lécharny resolved DIRSERVER-2289.
------------------------------------------
    Resolution: Not A Problem

This can't work, because this control is not designed to work cross LDAP sessions. See my detailed answer on https://lists.apache.org/thread.html/1fe877e68184c6faafe1844655957ae40357395fd38fcae69ecf5ac7@%3Cdev.directory.apache.org%3E

> Paging support to retrieve all the entries available in ApacheDS between different client and LDAP server connections
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: DIRSERVER-2289
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-2289
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 2.0.0.AM25
>         Environment: Windows Server 2012R2
>            Reporter: prashanth madduri
>            Priority: Minor
>             Fix For: 2.0.0.AM26
>
>
> We have ApacheDS 2.0.0 version installed on operating system Windows Server 2012R2. We have use case where the client should retrieve all the entries available in LDAP server. The entries can be of any size like millions. We are using LDAPJS node module paging ([http://ldapjs.org/client.html#paging]) to retrieve the entries with each page size has 100. As per our observation the pagination is working within the same connection from client to LDAP server with the Buffer returned from previous paged results using PageResultControl but the same Buffer is failing when the connection is different/new and giving "error: Invalid cookie for this PagedSearch request" error. 
>  
> We don't have any issue for pagination if we have single client application running and communicating with LDAP server. In our case we are following micro-service architecture and our client application will run in multiple instances and user next page request may goes to new instance with the Buffer captured from previous results which results failure with invalid cookie error. 
>  
> We have below two questions:
> 1. Is there any way to handle the pagination with multiple connections to server with the Buffer string provided from previous page results?
> 2. How the LDAP server is identifying the connections? This is considering we are facing invalid cookie issue for the same client server communication with the captured cookie.
>  
> Thanks in advance. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org