Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4460956

Interaction between server:port notation and IPv6 notation.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • core-libs
    • beta2
    • sparc
    • solaris_7

      DnsUrl.getHostPort() does not take IPv6 colon-separated notation into account:
      : host + ":" + port;

      Also in DnsClient:
      int colon = servers[i].indexOf(':'); // is optional port given?

      In toolkit.url.Uri, check that getHost() handles bracketed IPv6 addrs in the
      same way as java.net.URI. In fact, consider using the URI class instead of --
      or as the implementation of -- the Uri class. Note that the LDAP provider
      expects that the result of getHost() may be passed directly to the Socket
      constructor or socket factory.



            sseligmasunw Scott Seligman (Inactive)
            sseligmasunw Scott Seligman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: