From 943c10cc9d2d60660c53271a25848ecad77a91e7 Mon Sep 17 00:00:00 2001
From: pgamba <pgamba@localhost>
Date: Thu, 15 Oct 2009 13:15:17 +0000
Subject: [PATCH] Fix #4263 ECL entries should include creatorsName and createTimestamp

---
 opends/src/server/org/opends/server/replication/plugin/LDAPReplicationDomain.java |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/opends/src/server/org/opends/server/replication/plugin/LDAPReplicationDomain.java b/opends/src/server/org/opends/server/replication/plugin/LDAPReplicationDomain.java
index 898b387..78178b7 100644
--- a/opends/src/server/org/opends/server/replication/plugin/LDAPReplicationDomain.java
+++ b/opends/src/server/org/opends/server/replication/plugin/LDAPReplicationDomain.java
@@ -4537,6 +4537,20 @@
           newattrs.add(a);
       }
       ((DeleteMsg)msg).setEclIncludes(newattrs);
+
+      // For delete only, add the modifiersName since they are required in the
+      // ECL entry but are not part of other parts of the message
+      AttributeType atype = DirectoryServer.getAttributeType("modifiersname");
+      List<Attribute> attrs = entry.getAttribute(atype);
+      if (attrs != null)
+      {
+        for (Attribute a : attrs)
+        {
+          ((DeleteMsg)msg).setInitiatorsName(a.iterator().next().toString());
+          break;
+        }
+      }
+
     }
     else if (op instanceof PostOperationModifyOperation)
     {

--
Gitblit v1.10.0