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

jvergara
28.34.2009 8f59b2f80eab5a18bc35028b29b9160195409e9c
refs
author jvergara <jvergara@localhost>
Tuesday, July 28, 2009 16:34 +0200
committer jvergara <jvergara@localhost>
Tuesday, July 28, 2009 16:34 +0200
commit8f59b2f80eab5a18bc35028b29b9160195409e9c
tree 121b9a203992647b9f5f0825928b1cc92217a9f4 tree | zip | gz
parent 5d365e89406093c3dea559946fca87792e7c7ea4 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
opends/src/guitools/org/opends/guitools/controlpanel/ui/ImportLDIFPanel.java 9 ●●●● diff | view | raw | blame | history
opends/src/guitools/org/opends/guitools/controlpanel/ui/NewBaseDNPanel.java 41 ●●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/Installation.java 10 ●●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java 152 ●●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/installer/InstallerHelper.java 106 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/util/SetupUtils.java 100 ●●●●● diff | view | raw | blame | history