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

vharseko
18.22.2023 d9ef90b49705daa2223432cd073e9dff39ae3f1b
FIX argument listBackups is incompatible with use of this tool to interact (#284)

https://github.com/OpenIdentityPlatform/OpenDJ/issues/271
2 files modified
9 ■■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/tools/RestoreDB.java 7 ●●●●● patch | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/tools/tasks/TaskTool.java 2 ●●● patch | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/tools/RestoreDB.java
@@ -173,6 +173,7 @@
                      .shortIdentifier('l')
                      .description(INFO_RESTOREDB_DESCRIPTION_LIST_BACKUPS.get())
                      .buildAndAddToParser(argParser);
      verifyOnly =
              BooleanArgument.builder(OPTION_LONG_DRYRUN)
                      .shortIdentifier(OPTION_SHORT_DRYRUN)
@@ -218,10 +219,8 @@
      return 0;
    }
    if (listBackups.isPresent() && !runOffline()) {
      printWrappedText(err, ERR_LDAP_CONN_INCOMPATIBLE_ARGS.get(listBackups.getLongIdentifier()));
      return 1;
    if (listBackups.isPresent()) {
      runOfflineArg.setPresent(true);
    }
    // Checks the version - if upgrade required, the tool is unusable
opendj-server-legacy/src/main/java/org/opends/server/tools/tasks/TaskTool.java
@@ -88,7 +88,7 @@
  private TaskScheduleArgs taskScheduleArgs;
  /** Argument used to know if the tool should be run in offline mode. */
  private BooleanArgument runOfflineArg;
  protected BooleanArgument runOfflineArg;
  /** This CLI is always using the administration connector with SSL. */
  private static final boolean alwaysSSL = true;