United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6748156 add an new JNDI property to control the boolean flag WaitForReply (JDK5)
JDK-6748156 : add an new JNDI property to control the boolean flag WaitForReply (JDK5)

Details
Type:
Enhancement
Submit Date:
2008-09-13
Status:
Resolved
Updated Date:
2010-12-03
Project Name:
JDK
Resolved Date:
2009-05-18
Component:
core-libs
OS:
linux_suse_sles_10
Sub-Component:
javax.naming
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
5.0,5.0u11
Fixed Versions:
5.0u19-rev (b03)

Related Reports
Backport:
Backport:
Backport:
Backport:
Duplicate:
Relates:
Relates:

Sub Tasks

Description
cannot cancel LDAP search operation via JNDI before the LDAP server sends the first batch of answers

The problem can be solved when changing the class com.sun.jndi.ldap.LdapCtx, method c_search(Name name, String filter, SearchControls cons, Continuation cont), row 1747. This method invokes "searchAux" with a parameter called "WaitForReply". In the original code "waitForReply" is set to true. A JNDI property is in order to allow customer to change "WaitForReply" to false in their code.

                                    

Comments
EVALUATION

The LDAP service provider implementation normally waits until the first reply from the server is received. The customer would like to be able to abandon a long-running search operation without having to wait for the first reply. A new boolean-valued JNDI property could be used to override the default behaviour.

*** (#1 of 1): [ UNSAVED ] ###@###.###
                                     
2008-10-17
SUGGESTED FIX

Introduce a new string-valued boolean property: 

   com.sun.jndi.ldap.search.waitForReply

Its values are "true" (default) and "false" and it is only examined when an LDAP
context is created.
                                     
2008-10-17



Hardware and Software, Engineered to Work Together