Apache Directory Project - [jira] Created: (DIRSERVER-623) Incorrect time limit unit

This is Interesting: Free IT Magazines  
Home > Archive > Apache Directory Project > May 2006 > [jira] Created: (DIRSERVER-623) Incorrect time limit unit





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author [jira] Created: (DIRSERVER-623) Incorrect time limit unit
Endi S. Dewata (JIRA)

2006-05-24, 7:11 pm

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 Se
archControls 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/secur...nistrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com