Issue Details (XML | Word | Printable)

Key: DIRSERVER-806
Type: Bug Bug
Status: Reopened Reopened
Priority: Minor Minor
Assignee: Emmanuel Lecharny
Reporter: Stefan Zoerner
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Directory ApacheDS

No continuation references for referrals returned for some search filters

Created: 27/Dec/06 03:27 PM   Updated: 26/May/07 07:09 AM
Return to search
Component/s: core
Affects Version/s: 1.0.1, 1.0
Fix Version/s: 1.0.3

Time Tracking:
Not Specified

File Attachments:
  Size
Java Source File Licensed for inclusion in ASF works ContinuationTest.java 2006-12-27 03:33 PM Stefan Zoerner 4 kB
Environment:
* ApacheDS 1.0.1 (SNAPSHOT)
* Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)
* Windows XP Professional SP2


 Description  « Hide
I have created a referral entry below the example partition like this:

dn: cn=theReferral,dc=example,dc=com
objectclass: top
objectClass: referral
objectClass: extensibleObject
cn: theReferral
ref: ldap://someHost:389/cn=somewhere

Afterwards I have performed some searches in order to check whether ApacheDS returns a search result continuation reference. I used JNDI and set Context.REFERRAL to "throw" in order to check whether I get a ReferralException.

Case 1:
Base: dc=example,dc=com
Filter: (objectClass=*)
Scope: sub

=> ApacheDS delivers a continuation reference with the search result. I get an exception at the client.

Case 2:
Base: dc=example,dc=com
Filter: (cn=Nick Cave)
Scope: sub

=> Other than expected, ApacheDS does not deliver a continuation reference with the search result. No exception occurs.

Note that the only change is the filter expression.

I have created a JUnit testcase to demonstrate the situation. It has been successfully tested with other Directory servers (OpenLDAP, IBM, Sun). I'll attach it soon.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #507140 Tue Feb 13 18:26:46 UTC 2007 elecharny Adding two tests to check DIRSERVER-806
Files Changed
MODIFY /directory/apacheds/branches/1.0/core-unit/src/test/java/org/apache/directory/server/core/jndi/ReferralITest.java

Repository Revision Date User Message
ASF #523115 Tue Mar 27 23:44:34 UTC 2007 elecharny Added a test for DIRSERVER-806.
Files Changed
ADD /directory/apacheds/branches/1.0/core-unit/src/test/java/org/apache/directory/server/core/jndi/Referral806Test.java