Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-4141

Fix exception message in ClusterSettings

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 4.3.0
    • Affects Version/s: None
    • Component/s: Configuration
    • None
    • Fully Compatible
    • Not Needed

      In ClusterSettings constructor:

                 if (builder.srvHost.split("\\.").length < 3) {
                      throw new IllegalArgumentException(format("An SRV host name '%s' was provided that does not contain at least three parts. "
                              + "It must contain a hostname, domain name and a top level domain.", builder.hosts.get(0).getHost()));
                  }
      

      should be:

                 if (builder.srvHost.split("\\.").length < 3) {
                      throw new IllegalArgumentException(format("An SRV host name '%s' was provided that does not contain at least three parts. "
                              + "It must contain a hostname, domain name and a top level domain.", builder.srvHost));
                  }
      

       

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: