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

jvergara
12.39.2009 7b980b8b8e47512d58cdb36a422505ccf83c6a17
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
opends/src/server/org/opends/server/tasks/ImportTask.java 2 ●●● patch | view | raw | blame | history
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);