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

Fabio Pistolesi
15.47.2016 0e1e9090b46ea7aadb19b7071194976cc483ffb9
OPENDJ-2944 When building the rebuild-index command create a new argument list

Trying to run rebuild-index during upgrade tried to modify a singleton when adding arguments to the command.
Switch to build a new argument list inside the method running rebuild index instead.
1 files modified
3 ■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/tools/upgrade/UpgradeTasks.java 3 ●●●● patch | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/tools/upgrade/UpgradeTasks.java
@@ -707,12 +707,13 @@
      }
      private void rebuildIndex(final LocalizableMessage infoMsg, final UpgradeContext context,
          final Set<String> baseDNs, final List<String> args) throws ClientException
          final Set<String> baseDNs, final List<String> baseArgs) throws ClientException
      {
        final ProgressNotificationCallback pnc = new ProgressNotificationCallback(INFORMATION, infoMsg, 25);
        logger.debug(infoMsg);
        context.notifyProgress(pnc);
        List<String> args = new ArrayList<>(baseArgs);
        args.add("--configFile");
        args.add(CONFIG_FILE_PATH);
        for (final String be : baseDNs)