directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r944943 - /directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/SearchHandler.java
Date Sun, 16 May 2010 23:55:15 GMT
Author: elecharny
Date: Sun May 16 23:55:14 2010
New Revision: 944943

URL: http://svn.apache.org/viewvc?rev=944943&view=rev
Log:
The pagedSearch cookie is an Int, not a Long

Modified:
    directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/SearchHandler.java

Modified: directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/SearchHandler.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/SearchHandler.java?rev=944943&r1=944942&r2=944943&view=diff
==============================================================================
--- directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/SearchHandler.java
(original)
+++ directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/SearchHandler.java
Sun May 16 23:55:14 2010
@@ -410,7 +410,7 @@ public class SearchHandler extends LdapR
         req.addAbandonListener( new SearchAbandonListener( ldapServer, cursor ) );
         setTimeLimitsOnCursor( req, session, cursor );
         LOG.debug( "using <{},{}> for size limit", sizeLimit, pagedLimit );
-        long cookieValue = 0;
+        int cookieValue = 0;
         
         int count = pagedContext.getCurrentPosition();
         int pageCount = 0;
@@ -507,7 +507,7 @@ public class SearchHandler extends LdapR
         PagedResultsControl pagedResultsControl = null;
         PagedResultsControl pagedSearchControl = 
             ( PagedResultsControl )req.getControls().get( PagedResultsControl.CONTROL_OID
);
-        byte [] cookie= pagedSearchControl.getCookie();
+        byte [] cookie = pagedSearchControl.getCookie();
         
         if ( !StringTools.isEmpty( cookie ) )
         {
@@ -554,7 +554,7 @@ public class SearchHandler extends LdapR
             return null;
         }
         
-        long cookieValue = cookieInstance.getCookieValue();
+        int cookieValue = cookieInstance.getCookieValue();
         
         return session.removePagedSearchContext( cookieValue );
     }



Mime
View raw message