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

jvergara
28.34.2009 b06eb3f371d1609063ea6f2f58bd1354a2804c6b
refs
author jvergara <jvergara@localhost>
Tuesday, July 28, 2009 16:34 +0200
committer jvergara <jvergara@localhost>
Tuesday, July 28, 2009 16:34 +0200
commitb06eb3f371d1609063ea6f2f58bd1354a2804c6b
tree 633c2004454d26a33869947a07525a4130c4e8af tree | zip | gz
parent f44e9002de0169def4a6d2fbe30cd5211c7d3e8e view | diff
Fix for issue 4148 (setup fails : The import LDIF tool returned error code 1)
Since the import-ldif utility does not support any more (temporarily) the append option the setup (and the control-panel) were broken.

Temporarily the following modifications have been made in the control panel:
If the user decides to create data in the new base DN and there was already data in the backend, a confirmation dialog will be displayed informing that all the data will be overwritten.
The appending options in the Import LDIF panel have been hidden.

Concerning the setup, the modifications made are permanent. What basically has been done is:
Use a single template LDIF file when the user decides to import automatically generated data. Before this, one file per base DN was generated, which required the option 'append' to be used. With a single file, no append is required. This is a clearer solution, since I think that appending data affects to performance.
I have found some memory issues with the default ergonomics of the new import (see issue 4151). Since some ergonomics issues may occur, the import is now launched in a separate process. If we manage to improve the code that determines the default java arguments to be used for the import, this will help avoiding problems with the import.
6 files modified
418 ■■■■■ changed files
opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/ui/ImportLDIFPanel.java 9 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/ui/NewBaseDNPanel.java 41 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/Installation.java 10 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java 152 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/installer/InstallerHelper.java 106 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/util/SetupUtils.java 100 ●●●●● diff | view | raw | blame | history