Issue #77 has been updated by Jonathan Clarke.

Category set to Core
Status changed from Feedback to Closed
Assigned to set to Jonathan Clarke
Target version set to 1.1.0

This is now fixed, it turns out that Java believes 
"someString".equalsIgnoreCase("") == true. Lovely.

Latest SVN trunk is corrected and the lsc-core-SNAPSHOT from tomorrow will 
contain the fix.
----------------------------------------
Bug #77: baseDn last character is removed when no context DN is given in 
provider.url
http://tools.lsc-project.org/issues/show/77

Author: Cl?ment Oudot
Status: Closed
Priority: Normal
Assigned to: Jonathan Clarke
Category: Core
Target version: 1.1.0


Hello,

I use provider.url without DN, and a base search like 'o=domain':
<pre>
src.java.naming.provider.url = ldap://locahost:389/

lsc.tasks.taskname.srcService.baseDn = o=domain
</pre>

This causes error like that:
<pre>
     [java] javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such 
Object]; remaining name 'o=domai'        
     [java]     at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3039)    
                                             
     [java]     at 
com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2960)                  
                          
     [java]     at 
com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2767)                  
                          
     [java]     at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1821)       
                                             
     [java]     at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1744)        
                                             
     [java]     at 
com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:368)
                       
     [java]     at 
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:338)
           
     [java]     at 
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:321)
           
     [java]     at 
javax.naming.directory.InitialDirContext.search(InitialDirContext.java:248)     
                          
     [java]     at org.lsc.jndi.JndiServices.getEntry(JndiServices.java:329)    
                                             
     [java]     at org.lsc.jndi.JndiServices.getEntry(JndiServices.java:294)    
                                             
     [java]     at 
org.lsc.jndi.AbstractSimpleJndiService.get(AbstractSimpleJndiService.java:256)  
                          
     [java]     at 
org.lsc.jndi.SimpleJndiSrcService.getObject(SimpleJndiSrcService.java:116)      
                          
     [java]     at 
org.lsc.AbstractSynchronize.synchronize2Ldap(AbstractSynchronize.java:334)      
                          
     [java]     at 
org.lsc.SimpleSynchronize.launchTask(SimpleSynchronize.java:280)                
                          
     [java]     at org.lsc.SimpleSynchronize.launch(SimpleSynchronize.java:172) 
                                             
     [java]     at org.lsc.Launcher.run(Launcher.java:128)                      
                                             
     [java]     at org.lsc.Launcher.main(Launcher.java:111)  
</pre>

The last character was removed...


-- 
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.lsc-project.org/pipermail/lsc-dev/attachments/20090615/08e05cc6/attachment.htm>

Reply via email to