directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r471341 - /directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/service/protocol/handler/ReplicationClientContextHandler.java
Date Sun, 05 Nov 2006 02:41:34 GMT
Author: akarasulu
Date: Sat Nov  4 18:41:33 2006
New Revision: 471341

URL: http://svn.apache.org/viewvc?view=rev&rev=471341
Log:
making sure we are normalizing the name before we feed it to AddEntryOperation

Modified:
    directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/service/protocol/handler/ReplicationClientContextHandler.java

Modified: directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/service/protocol/handler/ReplicationClientContextHandler.java
URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/service/protocol/handler/ReplicationClientContextHandler.java?view=diff&rev=471341&r1=471340&r2=471341
==============================================================================
--- directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/service/protocol/handler/ReplicationClientContextHandler.java
(original)
+++ directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/service/protocol/handler/ReplicationClientContextHandler.java
Sat Nov  4 18:41:33 2006
@@ -328,7 +328,10 @@
                 }
 
                 // Convert the entry into AddEntryOperation log.
-                Operation op = new AddEntryOperation( csn, new LdapDN( sr.getName() ), attrs
);
+                LdapDN dn = new LdapDN( sr.getName() );
+                dn.normalize( ctx.getServiceConfiguration().getGlobalRegistries()
+                    .getAttributeTypeRegistry().getNormalizerMapping() );
+                Operation op = new AddEntryOperation( csn, dn, attrs );
 
                 // Send a LogEntry message for the entry.
                 ctx.getSession().write( new LogEntryMessage( ctx.getNextSequence(), op )
);
@@ -341,6 +344,7 @@
     }
 
 
+    @SuppressWarnings("unchecked")
     private void sendReplicationLogs( ReplicationContext ctx, CSNVector myPV, CSNVector yourUV
)
     {
         Iterator i = myPV.getReplicaIds().iterator();



Mime
View raw message