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

jvergara
22.56.2007 fa4cddd59bcc575ddc90b2f9544ca1f701843db9
Fix for issue 2617.

The fix consists on creating a TopologyCache even if the ADS does not exist. The code in TopologyCache will generate an exception describing the problem (if any).
1 files modified
13 ■■■■ changed files
opends/src/guitools/org/opends/guitools/replicationcli/ReplicationCliMain.java 13 ●●●● patch | view | raw | blame | history
opends/src/guitools/org/opends/guitools/replicationcli/ReplicationCliMain.java
@@ -4598,17 +4598,8 @@
    TopologyCache cache = null;
    try
    {
      if (adsCtx.hasAdminData())
      {
        cache = new TopologyCache(adsCtx, getTrustManager());
        cache.reloadTopology();
      }
    }
    catch (ADSContextException adce)
    {
      throw new ReplicationCliException(
          ERR_REPLICATION_READING_ADS.get(adce.getMessage()),
          ERROR_READING_ADS, adce);
      cache = new TopologyCache(adsCtx, getTrustManager());
      cache.reloadTopology();
    }
    catch (TopologyCacheException tce)
    {