directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r489751 - /directory/branches/apacheds/1.0/core/src/main/java/org/apache/directory/server/core/operational/OperationalAttributeService.java
Date Fri, 22 Dec 2006 20:44:31 GMT
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() );
             }
         }
     }



Mime
View raw message