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

jvergara
12.39.2009 3295b8a0a7805a55f1736e9913ba30464cb1fb48
Issue 3710 (control-panel: error when creating an new base dn with automatically generated data)

Although it is marked as a control panel issue, the bug is on the core server and applies also to the import-ldif command-line.

The code is trying to build the path to the MakeLDIF resource directory by using the server root (install root) instead of the instance root. The MakeLDIF resource directory is located under <root>/config/MakeLDIF and so the instance root must be used.

1 files modified
2 ■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/tasks/ImportTask.java 2 ●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/tasks/ImportTask.java
@@ -793,7 +793,7 @@
        random = new Random();
      }
      String resourcePath = DirectoryServer.getServerRoot() + File.separator +
      String resourcePath = DirectoryServer.getInstanceRoot() + File.separator +
                            PATH_MAKELDIF_RESOURCE_DIR;
      TemplateFile tf = new TemplateFile(resourcePath, random);