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

kenneth_suter
12.41.2007 6452a0b512de72a2beb6da4a3f50fdc788a0f90f
refs
author kenneth_suter <kenneth_suter@localhost>
Thursday, July 12, 2007 16:41 +0200
committer kenneth_suter <kenneth_suter@localhost>
Thursday, July 12, 2007 16:41 +0200
commit6452a0b512de72a2beb6da4a3f50fdc788a0f90f
tree 8148b2b012fc2e4a79a28ee651dec612ac863e58 tree | zip | gz
parent 8d7506f436860f8fc028ac118bbcd18bc1f6fcf0 view | diff
This commit addresses issue 1851 "upgrader does not handle new config entries also present in current configuration".  This issue is somewhat of a corner case but this code will allow a user to better deal with problems that might arise migrating the configuration or schema of a server.

Prior to this commit, migration of schema and/or configuration was handled all at once by a utility class so if there were any problems the upgrade would fail with a generic error. With this commit, changes are processed one at a time by the upgrader itself so if there are problems with a particular change the upgrader can prompt explain the problem to the user and prompt for further direction (cancel, continue anyway, retry). There are still ways in which the experience could be improved but I'll leave this for the future if ever since I wouldn't expect this code to be exercised much.

Here a new class MigrationManager is introduced to consolidate the logic for migration into a single class to improve testability and reduce the size of the already bloated Upgrader class.

This commit also addresses issue 1969 to remove a erroneous Next button on the wizard itself.
1 files added
8 files modified
757 ■■■■■ changed files
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/Application.java 2 ●●● diff | view | raw | blame | history
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/CliUserInteraction.java 4 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/Constants.java 6 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/resources/Resources.properties 13 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/ui/GuiApplication.java 4 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/upgrader/MigrationManager.java 358 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/upgrader/Upgrader.java 144 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/util/InProcessServerController.java 192 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/util/Utils.java 34 ●●●●● diff | view | raw | blame | history