mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Valery Kharseko
yesterday 504a43fc479d884085df9895900608dc5b0aca6f
opendj-server-legacy/src/main/java/org/opends/server/tasks/ImportTask.java
@@ -13,6 +13,7 @@
 *
 * Copyright 2006-2009 Sun Microsystems, Inc.
 * Portions Copyright 2013-2016 ForgeRock AS.
 * Portions Copyright 2026 3A Systems, LLC.
 */
package org.opends.server.tasks;
@@ -475,6 +476,15 @@
      }
    }
    if (backend == null)
    {
      // Unlike initializeTask(), this method does not reject an include branch which resolves to no
      // backend, so none of them having resolved leaves nothing to import into. The message of the
      // backend ID case is reused here rather than adding a new one for a malformed task.
      logger.error(ERR_LDIFIMPORT_NO_BACKENDS_FOR_ID);
      return TaskState.STOPPED_BY_ERROR;
    }
    // Find backends with subordinate base DNs that should be excluded from the import.
    defaultIncludeBranches = new HashSet<>(backend.getBaseDNs());
    for (Backend<?> subBackend : getServerContext().getBackendConfigManager().getSubordinateBackends(backend))