directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r392062 - /directory/branches/apacheds/1.0/core/src/main/java/org/apache/directory/server/core/subtree/SubentryService.java
Date Thu, 06 Apr 2006 20:27:33 GMT
Author: akarasulu
Date: Thu Apr  6 13:27:30 2006
New Revision: 392062

URL: http://svn.apache.org/viewcvs?rev=392062&view=rev
Log:
fixed bug in subentry subsystem: multiple values were being added to subentry attributes due
to use of replace modifications instead of add operations

Modified:
    directory/branches/apacheds/1.0/core/src/main/java/org/apache/directory/server/core/subtree/SubentryService.java

Modified: directory/branches/apacheds/1.0/core/src/main/java/org/apache/directory/server/core/subtree/SubentryService.java
URL: http://svn.apache.org/viewcvs/directory/branches/apacheds/1.0/core/src/main/java/org/apache/directory/server/core/subtree/SubentryService.java?rev=392062&r1=392061&r2=392062&view=diff
==============================================================================
--- directory/branches/apacheds/1.0/core/src/main/java/org/apache/directory/server/core/subtree/SubentryService.java
(original)
+++ directory/branches/apacheds/1.0/core/src/main/java/org/apache/directory/server/core/subtree/SubentryService.java
Thu Apr  6 13:27:30 2006
@@ -620,18 +620,8 @@
             {
                 for ( int ii = 0; ii < SUBENTRY_OPATTRS.length; ii++ )
                 {
-                    int op = DirContext.REPLACE_ATTRIBUTE;
-                    Attribute opAttr = entry.get( SUBENTRY_OPATTRS[ii] );
-                    if ( opAttr != null )
-                    {
-                        opAttr = ( Attribute ) opAttr.clone();
-                    }
-                    else
-                    {
-                        op = DirContext.ADD_ATTRIBUTE;
-                        opAttr = new LockableAttributeImpl( SUBENTRY_OPATTRS[ii] );
-                    }
-
+                    int op = DirContext.ADD_ATTRIBUTE;
+                    Attribute opAttr = new LockableAttributeImpl( SUBENTRY_OPATTRS[ii] );
                     opAttr.add( subentryDn );
                     modList.add( new ModificationItem( op, opAttr ) );
                 }



Mime
View raw message