[jira] Created: (DIRSERVER-623) Incorrect time limit unit
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Directory Project > [jira] Created: (DIRSERVER-623) Incorrect time limit unit




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

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


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-25-06 12:11 AM

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 ex
ample is done using OpenLDAP's command line tool:

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

The -l 100 parameter indicates that the time limit is set to 100 seconds. Ho
wever, 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 l
imit is being passed directly from SearchRequest to SearchControls. Accordin
g to the documents in the code, the time limit in SearchRequest is in second
s, 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







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:48 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register