You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2006/12/22 21:44:31 UTC

svn commit: r489751 - /directory/branches/apacheds/1.0/core/src/main/java/org/apache/directory/server/core/operational/OperationalAttributeService.java

Author: elecharny
Date: Fri Dec 22 12:44:30 2006
New Revision: 489751

URL: http://svn.apache.org/viewvc?view=rev&rev=489751
Log:
Applied Stefan's patch for bug DIRSERVER-804

Modified:
    directory/branches/apacheds/1.0/core/src/main/java/org/apache/directory/server/core/operational/OperationalAttributeService.java

Modified: directory/branches/apacheds/1.0/core/src/main/java/org/apache/directory/server/core/operational/OperationalAttributeService.java
URL: http://svn.apache.org/viewvc/directory/branches/apacheds/1.0/core/src/main/java/org/apache/directory/server/core/operational/OperationalAttributeService.java?view=diff&rev=489751&r1=489750&r2=489751
==============================================================================
--- directory/branches/apacheds/1.0/core/src/main/java/org/apache/directory/server/core/operational/OperationalAttributeService.java (original)
+++ directory/branches/apacheds/1.0/core/src/main/java/org/apache/directory/server/core/operational/OperationalAttributeService.java Fri Dec 22 12:44:30 2006
@@ -379,17 +379,20 @@
             if ( attr != null )
             {
                 LdapDN creatorsName = new LdapDN( ( String ) attr.get() );
-                attr.set( 0, denormalizeTypes( creatorsName ).getUpName() );
+                attr.clear();
+                attr.add( 0, denormalizeTypes( creatorsName ).getUpName() );
             }
             
             type = null;
             type = registry.lookup( "modifiersName" );
             attr = null;
             attr = AttributeUtils.getAttribute( entry, type );
+
             if ( attr != null )
             {
                 LdapDN modifiersName = new LdapDN( ( String ) attr.get() );
-                attr.set( 0, denormalizeTypes( modifiersName ).getUpName() );
+                attr.clear();
+                attr.add( 0, denormalizeTypes( modifiersName ).getUpName() );
             }
         }
     }