Issue #252 has been updated by Raphaël Ouazana.

OK, I think I finally found a fix:
<pre>
Index: src/main/java/org/lsc/jndi/JndiServices.java
===================================================================
--- src/main/java/org/lsc/jndi/JndiServices.java        (révision 845)
+++ src/main/java/org/lsc/jndi/JndiServices.java        (copie de travail)
@@ -209,7 +209,7 @@
                }
 
                /* handle options */
-               contextDn = namingContext.getDN() != null ? 
namingContext.getDN() : null;
+               contextDn = namingContext.getDN() != null ? 
LDAPUrl.decode(namingContext.getDN()) : null;
 
                String pageSizeStr = (String) 
ctx.getEnvironment().get("java.naming.ldap.pageSize");
                if (pageSizeStr != null) {

</pre>
Please review and commit (all tests passing here).

Just wondering why org.ietf.ldap.LDAPUrl (aka JLDAP) is still used...
----------------------------------------
Bug #252: Error deleting entry with a suffix containg a space
http://tools.lsc-project.org/issues/252

Author: Raphaël Ouazana
Status: Feedback
Priority: Normal
Assigned to: Jonathan Clarke
Category: Core
Target version: 1.2.2
Problem in version: 


Hi,

Still a strange case with JNDI/LDAP/etc.

When launching a cleaning task (-c), I get the following error:
Jul 06 11:41:05 - ERROR - Error while deleting entry uid=xxx,ou=people,o=bla 
bla in directory :javax.naming.NameNotFoundExcepti
on: [LDAP: error code 32 - No Such Object]; remaining name 
'uid=xxx,ou=people,o=bla bla'
Jul 06 11:41:05 - ERROR - Error while synchronizing ID uid=xxx,ou=people,o=bla 
bla: java.lang.Exception: Technical problem whil
e applying modifications to directory
dn: uid=xxx,ou=people,o=bla bla,o=bla\20bla
changetype: delete

Note the suffix added to times: once with "o=bla bla", once with "o=bla\20bla".

Regards,
Raphaël Ouazana.


-- 
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