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

jvergara
08.58.2007 be0fe3eb50496cc908dc08ea9c29592dc1617ed8
Be consistent in dsreplication and the setup with the value we propose to represent the local host fully qualified name.
2 files modified
18 ■■■■■ changed files
opends/src/guitools/org/opends/guitools/replicationcli/ReplicationCliArgumentParser.java 11 ●●●● patch | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/UserData.java 7 ●●●● patch | view | raw | blame | history
opends/src/guitools/org/opends/guitools/replicationcli/ReplicationCliArgumentParser.java
@@ -32,13 +32,13 @@
import static org.opends.server.tools.ToolConstants.*;
import java.io.OutputStream;
import java.net.InetAddress;
import java.util.ArrayList;
import java.util.LinkedList;
import org.opends.messages.Message;
import org.opends.messages.MessageBuilder;
import org.opends.quicksetup.Constants;
import org.opends.quicksetup.UserData;
import org.opends.quicksetup.util.Utils;
import org.opends.server.admin.client.cli.SecureConnectionCliParser;
import org.opends.server.util.args.Argument;
@@ -1905,14 +1905,7 @@
  {
    if (defaultLocalHostValue == null)
    {
      try
      {
        InetAddress localAddress = InetAddress.getLocalHost();
        defaultLocalHostValue = localAddress.getHostName();
      }
      catch (Throwable t)
      {
      }
      defaultLocalHostValue = UserData.getDefaultHostName();
      if (defaultLocalHostValue == null)
      {
        defaultLocalHostValue = "localhost";
opends/src/quicksetup/org/opends/quicksetup/UserData.java
@@ -600,9 +600,12 @@
  }
  /**
   * Provides the default host name that will be displayed.
   * Provides the default host name that will be proposed to the user for the
   * local host.
   * @return the default host name that will be proposed to the user for the
   * local host.
   */
  private String getDefaultHostName()
  public static String getDefaultHostName()
  {
    String name = "";
    try