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

jcambon
28.36.2009 9aa6b65da210ec93b99b72ff082de4d049407427
Fix for Issue #3760 dsconfig exits abruptly when creating a component with a missing parent

1 files modified
6 ■■■■■ changed files
opends/src/server/org/opends/server/tools/dsconfig/CreateSubCommandHandler.java 6 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/tools/dsconfig/CreateSubCommandHandler.java
@@ -22,7 +22,7 @@
 * CDDL HEADER END
 *
 *
 *      Copyright 2007-2008 Sun Microsystems, Inc.
 *      Copyright 2007-2009 Sun Microsystems, Inc.
 */
package org.opends.server.tools.dsconfig;
@@ -1237,7 +1237,9 @@
    } catch (ManagedObjectNotFoundException e) {
      Message pufn = path.getManagedObjectDefinition().getUserFriendlyName();
      Message msg = ERR_DSCFG_ERROR_GET_PARENT_MONFE.get(pufn);
      throw new ClientException(LDAPResultCode.NO_SUCH_OBJECT, msg);
      app.println();
      app.printVerboseMessage(msg);
      return MenuResult.cancel();
    }
    if (result.isQuit()) {