You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ak...@apache.org on 2005/06/24 01:33:25 UTC
svn commit: r201521 -
/directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/jndi/DefaultContextFactoryConfiguration.java
Author: akarasulu
Date: Thu Jun 23 16:33:25 2005
New Revision: 201521
URL: http://svn.apache.org/viewcvs?rev=201521&view=rev
Log:
Fixed a bug where the ShutdownTest was failing because we were modifying the
Attributes from the LDIF of the testCases. On restart the same entry from
the LDIF was used again but this time it had no DN and blew a NullPointerEx.
Modified:
directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/jndi/DefaultContextFactoryConfiguration.java
Modified: directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/jndi/DefaultContextFactoryConfiguration.java
URL: http://svn.apache.org/viewcvs/directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/jndi/DefaultContextFactoryConfiguration.java?rev=201521&r1=201520&r2=201521&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/jndi/DefaultContextFactoryConfiguration.java (original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/jndi/DefaultContextFactoryConfiguration.java Thu Jun 23 16:33:25 2005
@@ -469,7 +469,7 @@
entry.put( "creatorsName", SystemPartition.ADMIN_PRINCIPAL );
entry.put( "createTimestamp", DateUtils.getGeneralizedTime() );
- Attribute dn = entry.remove( "dn" );
+ Attribute dn = ( Attribute ) entry.get( "dn" ).clone();
AttributeTypeRegistry registry = globalRegistries.getAttributeTypeRegistry();
NameComponentNormalizer ncn = new ConcreteNameComponentNormalizer( registry );
DnParser parser = new DnParser( ncn );