Blame SOURCES/0027-Issue-4734-import-of-entry-with-no-parent-warning-47.patch

e4a41f
From a2a51130b2f95316237b85da099a8be734969e54 Mon Sep 17 00:00:00 2001
e4a41f
From: James Chapman <jachapma@redhat.com>
e4a41f
Date: Sat, 24 Apr 2021 21:37:54 +0100
e4a41f
Subject: [PATCH] Issue 4734 - import of entry with no parent warning (#4735)
e4a41f
e4a41f
Description:    Online import of ldif file that contains an entry with
e4a41f
                no parent doesnt generate a task warning.
e4a41f
e4a41f
Fixes:          https://github.com/389ds/389-ds-base/issues/4734
e4a41f
e4a41f
Author: vashirov@redhat.com (Thanks)
e4a41f
e4a41f
Reviewed by: mreynolds, jchapma
e4a41f
---
e4a41f
 ldap/servers/slapd/back-ldbm/db-bdb/bdb_import_threads.c | 6 ++++++
e4a41f
 1 file changed, 6 insertions(+)
e4a41f
e4a41f
diff --git a/ldap/servers/slapd/back-ldbm/db-bdb/bdb_import_threads.c b/ldap/servers/slapd/back-ldbm/db-bdb/bdb_import_threads.c
e4a41f
index 905a84e74..35183ed59 100644
e4a41f
--- a/ldap/servers/slapd/back-ldbm/db-bdb/bdb_import_threads.c
e4a41f
+++ b/ldap/servers/slapd/back-ldbm/db-bdb/bdb_import_threads.c
e4a41f
@@ -2767,8 +2767,14 @@ import_foreman(void *param)
e4a41f
         if (job->flags & FLAG_ABORT) {
e4a41f
             goto error;
e4a41f
         }
e4a41f
+
e4a41f
+        /* capture skipped entry warnings for this task */
e4a41f
+        if((job) && (job->skipped)) {
e4a41f
+            slapi_task_set_warning(job->task, WARN_SKIPPED_IMPORT_ENTRY);
e4a41f
+        }
e4a41f
     }
e4a41f
 
e4a41f
+
e4a41f
     slapi_pblock_destroy(pb);
e4a41f
     info->state = FINISHED;
e4a41f
     return;
e4a41f
-- 
e4a41f
2.31.1
e4a41f