directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <elecha...@apache.org>
Subject Re: [ApacheDS Embedded] Reusing a Connection Environment
Date Thu, 14 Jun 2007 05:18:13 GMT
Ole Ersoy a écrit :

> Hey Guys,
>
> This is pretty minor, but I thought I'd mention it.  While working on 
> the testing archetype, I tried reusing a createEnvironment() method 
> when creating the environment for the Embedded LdapContext.  I get a 
> NamingException when doing this.  It says it can't parse "ou=system".  

What about cloning the existing env, before reusing it ?

> If I do a "fresh" Hashtable for the environment, with the exact same 
> key-value pairs the test is green.  I thought this was very odd, so I 
> tried it over and over, in all sorts of creative ways.  The same thing 
> works fine for non-embedded connections.  It's almost like a security 
> manager is preventing the class from using a environment created in a 
> different class.

Can you provide a test case for this problem ?

Thanks,
Emmanuel


Mime
View raw message