directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r201521 - /directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/jndi/DefaultContextFactoryConfiguration.java
Date Thu, 23 Jun 2005 23:33:25 GMT
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 );



Mime
View raw message