From 96fa4208d42b8e9a3d3ffe4fbb7d7ae349b1b740 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Fri, 02 May 2008 10:59:15 +0000
Subject: [PATCH] Fix for issue 3221 (uninstall returns 0 but fails when LDAP connection is rejected) There was a bug in the manner the option forceOnError.  Appart from that there were some issues due to the fact that most of the methods in UninstallCliHelper do not throw exceptions.  I have updated some interfaces and now the behavior is the following:

---
 opends/src/guitools/org/opends/guitools/uninstaller/Uninstaller.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/opends/src/guitools/org/opends/guitools/uninstaller/Uninstaller.java b/opends/src/guitools/org/opends/guitools/uninstaller/Uninstaller.java
index 99aab0a..d1064e7 100644
--- a/opends/src/guitools/org/opends/guitools/uninstaller/Uninstaller.java
+++ b/opends/src/guitools/org/opends/guitools/uninstaller/Uninstaller.java
@@ -571,7 +571,7 @@
    * @param launcher
    */
   public UserData createUserData(Launcher launcher)
-          throws UserDataException {
+          throws UserDataException, ApplicationException {
     return cliHelper.createUserData(
         (UninstallerArgumentParser)launcher.getArgumentParser(),
         launcher.getArguments());
@@ -1884,7 +1884,7 @@
         LOG.log(Level.INFO, "Error updating replication references in: "+
             server.getHostPort(true), ae);
 
-        if (getUninstallUserData().isForceOnError())
+        if (!getUninstallUserData().isForceOnError())
         {
           throw ae;
         }

--
Gitblit v1.10.0