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/tasks/BackupTask.java |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/tasks/BackupTask.java b/opendj-server-legacy/src/main/java/org/opends/server/tasks/BackupTask.java
index c624737..2c37e58 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/tasks/BackupTask.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/tasks/BackupTask.java
@@ -148,23 +148,23 @@
     AttributeType typeBackupDirectory = getSchema().getAttributeType(ATTR_BACKUP_DIRECTORY_PATH);
     AttributeType typeIncrementalBaseID = getSchema().getAttributeType(ATTR_TASK_BACKUP_INCREMENTAL_BASE_ID);
 
-    backUpAll = TaskUtils.getBoolean(taskEntry.getAttribute(typeBackupAll), false);
-    compress = TaskUtils.getBoolean(taskEntry.getAttribute(typeCompress), false);
-    encrypt = TaskUtils.getBoolean(taskEntry.getAttribute(typeEncrypt), false);
-    hash = TaskUtils.getBoolean(taskEntry.getAttribute(typeHash), false);
-    incremental = TaskUtils.getBoolean(taskEntry.getAttribute(typeIncremental), false);
-    signHash = TaskUtils.getBoolean(taskEntry.getAttribute(typeSignHash), false);
-    backendIDList = TaskUtils.getMultiValueString(taskEntry.getAttribute(typeBackendID));
-    backupID = TaskUtils.getSingleValueString(taskEntry.getAttribute(typeBackupID));
+    backUpAll = TaskUtils.getBoolean(taskEntry.getAllAttributes(typeBackupAll), false);
+    compress = TaskUtils.getBoolean(taskEntry.getAllAttributes(typeCompress), false);
+    encrypt = TaskUtils.getBoolean(taskEntry.getAllAttributes(typeEncrypt), false);
+    hash = TaskUtils.getBoolean(taskEntry.getAllAttributes(typeHash), false);
+    incremental = TaskUtils.getBoolean(taskEntry.getAllAttributes(typeIncremental), false);
+    signHash = TaskUtils.getBoolean(taskEntry.getAllAttributes(typeSignHash), false);
+    backendIDList = TaskUtils.getMultiValueString(taskEntry.getAllAttributes(typeBackendID));
+    backupID = TaskUtils.getSingleValueString(taskEntry.getAllAttributes(typeBackupID));
 
-    String backupDirectoryPath = TaskUtils.getSingleValueString(taskEntry.getAttribute(typeBackupDirectory));
+    String backupDirectoryPath = TaskUtils.getSingleValueString(taskEntry.getAllAttributes(typeBackupDirectory));
     backupDirectory = new File(backupDirectoryPath);
     if (! backupDirectory.isAbsolute())
     {
       backupDirectory = new File(DirectoryServer.getInstanceRoot(), backupDirectoryPath);
     }
 
-    incrementalBase = TaskUtils.getSingleValueString(taskEntry.getAttribute(typeIncrementalBaseID));
+    incrementalBase = TaskUtils.getSingleValueString(taskEntry.getAllAttributes(typeIncrementalBaseID));
 
     configEntries = TaskUtils.getBackendConfigEntries();
   }

--
Gitblit v1.10.0