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

coulbeck
19.17.2007 44c5b162243b7b05392522f762b53bafe52af07c
Fix for issue 2297: dsreplication enable No reachable peer in the domain.
Move up the code that seeds the trust store so it happens before replication is enabled (as per gui setup equivalent code).
1 files modified
24 ■■■■ changed files
opends/src/guitools/org/opends/guitools/replicationcli/ReplicationCliMain.java 24 ●●●● patch | view | raw | blame | history
opends/src/guitools/org/opends/guitools/replicationcli/ReplicationCliMain.java
@@ -3025,6 +3025,18 @@
          ERR_REPLICATION_UPDATING_ADS.get(adce.getMessage()),
          ERROR_UPDATING_ADS, adce);
    }
    try
    {
      ServerDescriptor.seedAdsTrustStore(ctxDestination,
        adsCtxSource.getTrustedCertificates());
    }
    catch (Throwable t)
    {
      LOG.log(Level.SEVERE, "Error seeding truststores: "+t, t);
      throw new ReplicationCliException(
          ERR_REPLICATION_ENABLE_SEEDING_TRUSTSTORE.get(t.toString()),
          ERROR_SEEDING_TRUSTORE, t);
    }
    printProgressMessage(formatter.getFormattedDone());
    printProgressMessage(formatter.getLineBreak());
@@ -3245,18 +3257,6 @@
              ConnectionUtils.getHostPort(ctxDestination),
              ConnectionUtils.getHostPort(ctxSource))));
      try
      {
        ServerDescriptor.seedAdsTrustStore(ctxDestination,
          adsCtxSource.getTrustedCertificates());
      }
      catch (Throwable t)
      {
        LOG.log(Level.SEVERE, "Error seeding truststores: "+t, t);
        throw new ReplicationCliException(
            ERR_REPLICATION_ENABLE_SEEDING_TRUSTSTORE.get(t.toString()),
            ERROR_SEEDING_TRUSTORE, t);
      }
      initializeSuffix(ADSContext.getAdministrationSuffixDN(), ctxSource,
          ctxDestination, false);
      printProgressMessage(formatter.getFormattedDone());