From d89c47e7cb1b3c9181e25582539aac1dedb46099 Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Mon, 08 Aug 2016 07:31:25 +0000
Subject: [PATCH] Partial OPENDJ-3106 Migrate Entry

---
 opendj-server-legacy/src/main/java/org/opends/server/crypto/CryptoManagerSync.java |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/crypto/CryptoManagerSync.java b/opendj-server-legacy/src/main/java/org/opends/server/crypto/CryptoManagerSync.java
index bf8cb63..6f51d5b 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/crypto/CryptoManagerSync.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/crypto/CryptoManagerSync.java
@@ -337,8 +337,8 @@
    */
   private void modifyEntry(Entry srcEntry, Entry dstEntry)
   {
-    List<Attribute> srcList = srcEntry.getAttribute(attrCert);
-    List<Attribute> dstList = dstEntry.getAttribute(attrCert);
+    List<Attribute> srcList = srcEntry.getAllAttributes(attrCert);
+    List<Attribute> dstList = dstEntry.getAllAttributes(attrCert);
 
     // Check for changes to the certificate value.
     if (!srcList.equals(dstList))
@@ -392,7 +392,7 @@
   private void putAttributeTypeIfExist(Map<AttributeType, List<Attribute>> userAttrs, Entry srcEntry,
       AttributeType attrType)
   {
-    List<Attribute> attrList = srcEntry.getAttribute(attrType);
+    List<Attribute> attrList = srcEntry.getAllAttributes(attrType);
     if (!attrList.isEmpty())
     {
       userAttrs.put(attrType, new ArrayList<>(attrList));

--
Gitblit v1.10.0