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

Interaction between server:port notation and IPv6 notation.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.4.0
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      beta2
    • CPU:
      sparc
    • OS:
      solaris_7

      Description

      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.



        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: