directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (DIRSERVER-623) Incorrect time limit unit
Date Sun, 30 Jul 2006 18:16:14 GMT
     [ http://issues.apache.org/jira/browse/DIRSERVER-623?page=all ]

Emmanuel Lecharny resolved DIRSERVER-623.
-----------------------------------------

    Resolution: Fixed

Great found !

And thanks for the exact line where we have the problem. 

I have transformed the timeLimit from seconds to millisecond internally, so it's should be
ok now.

Thanks again!

> Incorrect time limit unit
> -------------------------
>
>                 Key: DIRSERVER-623
>                 URL: http://issues.apache.org/jira/browse/DIRSERVER-623
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects 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

        

Mime
View raw message