Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8220499 Update JDK networking tests for IPv6-only environments
  3. JDK-8221684

Correctly format test URI's that contain an IPv6 address retrieved from the host

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Unresolved
    • P4
    • None
    • 13
    • core-libs

    Description

      Several tests that retrieve an IP address from the host system, use that in the construction of a URL / URI. If the IP address is an IPv6 address, then it may need to be enclosed in "[" and "]" characters.

      Follow-on to JDK-8220575, but with a slightly different pattern, since the tests use getLocalHost, rather than getLoopbackAddress or 127.0.0.1, etc.

      Two such tests are:
        test/jdk/sun/net/www/protocol/http/HttpOnly.java
        test/jdk/sun/net/www/protocol/http/NoCache.java

      These test don't need to use getLocalHost, they could use the loopback.

      Attachments

        Activity

          People

            chegar Chris Hegarty
            chegar Chris Hegarty
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: