directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r191520 - /directory/apacheds/branches/db_refactor/core/src/main/java/org/apache/ldap/server/partition/DefaultContextPartitionNexus.java
Date Mon, 20 Jun 2005 17:44:52 GMT
Author: trustin
Date: Mon Jun 20 10:44:52 2005
New Revision: 191520

URL: http://svn.apache.org/viewcvs?rev=191520&view=rev
Log:
Fixed: root entry of system partition is incorrect.

Modified:
    directory/apacheds/branches/db_refactor/core/src/main/java/org/apache/ldap/server/partition/DefaultContextPartitionNexus.java

Modified: directory/apacheds/branches/db_refactor/core/src/main/java/org/apache/ldap/server/partition/DefaultContextPartitionNexus.java
URL: http://svn.apache.org/viewcvs/directory/apacheds/branches/db_refactor/core/src/main/java/org/apache/ldap/server/partition/DefaultContextPartitionNexus.java?rev=191520&r1=191519&r2=191520&view=diff
==============================================================================
--- directory/apacheds/branches/db_refactor/core/src/main/java/org/apache/ldap/server/partition/DefaultContextPartitionNexus.java
(original)
+++ directory/apacheds/branches/db_refactor/core/src/main/java/org/apache/ldap/server/partition/DefaultContextPartitionNexus.java
Mon Jun 20 10:44:52 2005
@@ -33,6 +33,7 @@
 import javax.naming.NamingException;
 import javax.naming.directory.Attribute;
 import javax.naming.directory.Attributes;
+import javax.naming.directory.BasicAttribute;
 import javax.naming.directory.BasicAttributes;
 import javax.naming.directory.ModificationItem;
 import javax.naming.directory.SearchControls;
@@ -217,8 +218,10 @@
         
         // Add context entry for system partition
         Attributes systemEntry = new BasicAttributes();
-        systemEntry.put( "objectClass", "top" ) ;
-        systemEntry.put( "objectClass", "organizationalUnit" ) ;
+        Attribute objectClassAttr = new BasicAttribute( "objectClass" );
+        objectClassAttr.add( "top" );
+        objectClassAttr.add( "organizationalUnit" );
+        systemEntry.put( objectClassAttr );
         systemEntry.put( "creatorsName", ContextPartitionNexus.ADMIN_PRINCIPAL ) ;
         systemEntry.put( "createTimestamp", DateUtils.getGeneralizedTime() ) ;
         systemEntry.put(



Mime
View raw message