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

jvergara
15.36.2008 5c35407b132d21857b59d6dd20442f7cf341eeed
Fix for issue 2818 (Cannot start replication ifthe second server created using quicksetup tool)

I have not been able to reproduce the problem as described in the bug report but there was a bug with the ApplicationTrustManager used by the Web Start installer: in fact when the user accepted the certificates it was not updated properly and this generated connection problems.

Since with these modifications I am not able to reproduce the issue I am marking the bug as fixed.
4 files modified
16 ■■■■ changed files
opends/src/ads/org/opends/admin/ads/util/ConnectionUtils.java 2 ●●● patch | view | raw | blame | history
opends/src/guitools/org/opends/guitools/uninstaller/Uninstaller.java 2 ●●● patch | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/Application.java 2 ●●● patch | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/installandupgrader/InstallAndUpgrader.java 10 ●●●●● patch | view | raw | blame | history
opends/src/ads/org/opends/admin/ads/util/ConnectionUtils.java
@@ -59,7 +59,7 @@
 */
public class ConnectionUtils
{
  private static final int DEFAULT_LDAP_CONNECT_TIMEOUT = 10000;
  private static final int DEFAULT_LDAP_CONNECT_TIMEOUT = 30000;
  private static final String STARTTLS_PROPERTY =
    "org.opends.connectionutils.isstarttls";
opends/src/guitools/org/opends/guitools/uninstaller/Uninstaller.java
@@ -1288,7 +1288,7 @@
  /**
   * {@inheritDoc}
   */
  protected ApplicationTrustManager getTrustManager()
  public ApplicationTrustManager getTrustManager()
  {
    return getUninstallUserData().getTrustManager();
  }
opends/src/quicksetup/org/opends/quicksetup/Application.java
@@ -576,7 +576,7 @@
   * Returns the trust manager that can be used to establish secure connections.
   * @return the trust manager that can be used to establish secure connections.
   */
  protected ApplicationTrustManager getTrustManager()
  public ApplicationTrustManager getTrustManager()
  {
    if (trustManager == null)
    {
opends/src/quicksetup/org/opends/quicksetup/installandupgrader/InstallAndUpgrader.java
@@ -27,6 +27,7 @@
package org.opends.quicksetup.installandupgrader;
import org.opends.admin.ads.util.ApplicationTrustManager;
import org.opends.messages.Message;
import static org.opends.messages.QuickSetupMessages.*;
@@ -532,4 +533,13 @@
    }
    return userData;
  }
  /**
   * Returns the trust manager that can be used to establish secure connections.
   * @return the trust manager that can be used to establish secure connections.
   */
  public ApplicationTrustManager getTrustManager()
  {
    return getDelegateApplication().getTrustManager();
  }
}