Incorrect time limit unit
-------------------------

         Key: DIRSERVER-623
         URL: http://issues.apache.org/jira/browse/DIRSERVER-623
     Project: Directory ApacheDS
        Type: Bug

    Versions: 1.0-RC3    
    Reporter: Endi S. Dewata


The time limit in the search request is incorrectly treated as milliseconds. 
According to RFC 2251 the time limit should be in seconds. The following 
example is done using OpenLDAP's command line tool:

  ldapsearch -h localhost -p 10389 -D uid=admin,ou=system -w secret -b 
"dc=example,dc=com" -l 100

The -l 100 parameter indicates that the time limit is set to 100 seconds. 
However, the search operation stops in less than a second with error message 
"Time limit exceeded". Some other LDAP client (e.g. Softerra) might specify a 
time limit by default, so it will affect the results.

This could be the cause of the problem: in SearchHandler.java:82, the time 
limit is being passed directly from SearchRequest to SearchControls. According 
to the documents in the code, the time limit in SearchRequest is in seconds, 
but the time limit in SearchControls is in milliseconds, so it should have been 
multiplied by 1000.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to