Issue #471 has been updated by Clément OUDOT.

Clément OUDOT wrote:
> Yes I confirm, same result with or without CDATA.
> 
> I testes with LSC 2.0rc2 and LSC 2.0-SNAPSHOT from today, same bug.

After a discussion with Raphaël, Hugh may not face the bug because he is using 
a ldapSourceService, which uses only JNDI, and not asyncLdapSourceService, 
which uses Apache DS libs.
----------------------------------------
Bug #471: substring search in <getAllFilter> is not working in v2.0
http://tools.lsc-project.org/issues/471

Author: David Coutadeur
Status: New
Priority: Normal
Assigned to: 
Category: Core
Target version: 2.0
Problem in version: 


A search like 
<getAllFilter><![CDATA[(myattribute=abc*)]]></getAllFilter>
is not properly evaluated and cause a bug in apacheds-all.jar. More precisely 
in 
org.apache.directory.shared.ldap.codec.*

Here are some elements for debuging: 
line 1217 in LdapConnection:
            ExprNode filterNode = FilterParser.parse( searchRequest.getFilter() 
);
            filter = LdapTransformer.transformFilter( filterNode );

The filterNode seems correctly evaluated, but the 
LdapTransformer.transformFilter produces a filter that does not seem correct.
Indeed, inside filter, we can see : initialSubstring: abc, but there is no 
reference to "myattribute" in it.
As a result, the
line 1457 in LdapConnection:
WriteFuture writeFuture = ldapSession.write( request );

fails with no request in the ldap.

- The transformFilter operation is in an external library: apacheds-all-1.5.7. 
Maybe an upgrade to 2.0 could solve the bug.

- This issue could be related to the same problem : 
https://issues.apache.org/jira/browse/DIRAPI-17




-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://tools.lsc-project.org/my/account
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-dev mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-dev

Reply via email to