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

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