|
To be fixed in 1.0.1 and 1.5.0
The problem is that the current server doe snot natively handle such searches for refferal : you have to add the Context.REFERRAL=throw property in order to get a referral exception. The current default implementation is to ignore the referral.
If one add this property to the request, both tests are passing. I guess that we should change this behavior to default to THROW instead of IGNORE. Emmanuel, thanks for your investigations! Do you mean that it is sufficient to change the configuration within server.xml?
Something like this? ... <bean id="environment" class="org.springframework.beans.factory.config.PropertiesFactoryBean"> <property name="properties"> <props> <prop key="java.naming.security.authentication">simple</prop> <prop key="java.naming.security.principal">uid=admin,ou=system</prop> <prop key="java.naming.security.credentials">******</prop> <prop key="java.naming.referral">throw</prop> ... I'll try this out. Perhaps it is an option for my customer to simple configure the server that way. Stefan, this is so good to work with smart people :) I wasn't even aware of such a property in the configuration file !
Ok, I can't guarantee that it will solve the problem, but maybe. Give it a try and give us some feedback ! RE changing the default to THROW instead of IGNORE:
(1) is this the expected default for JNDI Providers? (2) what side effects do we expect to see if we do this? Yes and try mucking with the parameter in the configuration file :). Unfortunately, simply adding the parameter in the server.xml does not cause the test case to pass.
Please note that this is a problem which currently blocks blocks both 1.0.x and 1.5.x from passing the STANDARD profile of the Open Group Certification. But because the 1.0 is certified for the BASE profile only, this issue is not a blocker for a 1.0.1 release. The latter would still be certified with the same level as the 1.0.0 (which obviously is expected by our users), because it can pass all relevant tests, without fixing this issue. Postponed to 1.0.2. This bug is not serious (we can live with it for a little while), but fixing it is quite complicated.
The idea is to release the 1.0.1 version now, so that users can have a better version (1.0.0 has serious issues that we can't live with). I may have fixed this issue in 1.0.2 :
http://svn.apache.org/viewvc?view=rev&rev=523116 and the test : http://svn.apache.org/viewvc?view=rev&rev=523115 I hope this is correct ! Ok, after more investigation this morning ( the patch has been committed yesturday evening, 2 am, and I was too tired to confirm the fix), I saw that in 1.5.0, the code has been fixed. I just forgot to backport it to 1.0.2, so I guess it was a corrct patch because I fixed it twice in the same way :)
Marked as resolved, unless Stefan disagree. Unfortunately, the method testSimpleContinuationWithCnFilter of the provided JUnit test still fails with the 1.0.2-SNAPSHOT.
As the 1.0.2 release has been issued, push this bug to 1.0.3
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
* Sun Java System Directory Server 5.2
* IBM Tivoli Directory Server 6.0
* OpenLDAP 2.3
With ApacheDS 1.0.1, one of the two tests (testSimpleContinuationWithCnFilter) fails, no referral is returned.