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

Ludovic Poitou
07.29.2013 699670ed5e8d6202df887984231a28930339006e
Fix Jumbo issue OPENDJ-747 ;-)
Run a subtree search to find the replication server, rather than reading directly the supposedly existing entry. This prevent an error to be logged in access log if the current server has no replication server.
1 files modified
5 ■■■■■ changed files
opendj-sdk/opends/src/ads/org/opends/admin/ads/ServerDescriptor.java 5 ●●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/ads/org/opends/admin/ads/ServerDescriptor.java
@@ -23,6 +23,7 @@
 *
 *
 *      Copyright 2007-2010 Sun Microsystems, Inc.
 *      Portion Copyright 2013 ForgeRock AS.
 */
package org.opends.admin.ads;
@@ -1176,7 +1177,7 @@
    }
    ctls = new SearchControls();
    ctls.setSearchScope(SearchControls.OBJECT_SCOPE);
    ctls.setSearchScope(SearchControls.SUBTREE_SCOPE);
    ctls.setReturningAttributes(
    new String[] {
      "ds-cfg-replication-port", "ds-cfg-replication-server",
@@ -1184,7 +1185,7 @@
    });
    filter = "(objectclass=ds-cfg-replication-server)";
    jndiName = new LdapName("cn=Replication Server,cn=Multimaster "+
    jndiName = new LdapName("cn=Multimaster "+
        "Synchronization,cn=Synchronization Providers,cn=config");
    desc.serverProperties.put(ServerProperty.IS_REPLICATION_SERVER,