directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1129169 - /directory/apacheds/trunk/core-integ/src/main/java/org/apache/directory/server/core/integ/IntegrationUtils.java
Date Mon, 30 May 2011 13:38:53 GMT
Author: elecharny
Date: Mon May 30 13:38:53 2011
New Revision: 1129169

URL: http://svn.apache.org/viewvc?rev=1129169&view=rev
Log:
Fixed an issue in LDIF entry injection : addition of entries weren't correctly handled

Modified:
    directory/apacheds/trunk/core-integ/src/main/java/org/apache/directory/server/core/integ/IntegrationUtils.java

Modified: directory/apacheds/trunk/core-integ/src/main/java/org/apache/directory/server/core/integ/IntegrationUtils.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-integ/src/main/java/org/apache/directory/server/core/integ/IntegrationUtils.java?rev=1129169&r1=1129168&r2=1129169&view=diff
==============================================================================
--- directory/apacheds/trunk/core-integ/src/main/java/org/apache/directory/server/core/integ/IntegrationUtils.java
(original)
+++ directory/apacheds/trunk/core-integ/src/main/java/org/apache/directory/server/core/integ/IntegrationUtils.java
Mon May 30 13:38:53 2011
@@ -46,8 +46,8 @@ import org.apache.directory.server.ldap.
 import org.apache.directory.shared.ldap.model.constants.AuthenticationLevel;
 import org.apache.directory.shared.ldap.model.constants.SchemaConstants;
 import org.apache.directory.shared.ldap.model.entry.Attribute;
-import org.apache.directory.shared.ldap.model.entry.DefaultEntry;
 import org.apache.directory.shared.ldap.model.entry.DefaultAttribute;
+import org.apache.directory.shared.ldap.model.entry.DefaultEntry;
 import org.apache.directory.shared.ldap.model.exception.LdapException;
 import org.apache.directory.shared.ldap.model.ldif.ChangeType;
 import org.apache.directory.shared.ldap.model.ldif.LdifEntry;
@@ -112,7 +112,7 @@ public class IntegrationUtils
 
         for ( LdifEntry entry : entries )
         {
-            if ( entry.isChangeAdd() )
+            if ( entry.isEntry() )
             {
                 service.getAdminSession().add(
                     new DefaultEntry( service.getSchemaManager(), entry.getEntry() ) );



Mime
View raw message