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

jvergara
26.23.2008 e75584b1354e33c7c373ea13521d29bb5ac433d7
refs
author jvergara <jvergara@localhost>
Wednesday, March 26, 2008 18:23 +0100
committer jvergara <jvergara@localhost>
Wednesday, March 26, 2008 18:23 +0100
commite75584b1354e33c7c373ea13521d29bb5ac433d7
tree facc3fbe6c73e031cebdbdada93995ec711a7018 tree | zip | gz
parent 6abbc1b5356cd1fe69f0b111cf795cf62b008feb view | diff
Fix for issues 3086 and 3087 (Command uninstall --cli should not uninstall when the user have not answer "yes")

The fix consists of considering that the user cancelled the uninstaller when providing invalid confirmation or menu data.

The MenuBuilder class has been extended to be able to limit the number of tries that the user has to give a valid menu option. The current behavior (unlimited tries) is kept by default. The uninstaller limits the number of tries in the menu to be consistent with what is done with the confirmation messages (the number of tries is limited to 5).
5 files modified
65 ■■■■ changed files
opends/src/guitools/org/opends/guitools/uninstaller/UninstallCliHelper.java 11 ●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/Launcher.java 4 ●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/QuickSetupCli.java 3 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/util/cli/ConsoleApplication.java 10 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/util/cli/MenuBuilder.java 37 ●●●● diff | view | raw | blame | history