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.
| | |
| | | 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); |
| | | |