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

Tests should not use (real, in-use, routable) 1.1.1.1 as dummy IP value

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 18
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Introduced In Version:
      9
    • Resolved In Build:
      b15

      Description

      Some tests, including test/jdk/java/net/HttpURLConnection/HttpURLConWithProxy.java , use the IP address "1.1.1.1" as a value. I think at the time the address was picked, the assumption was the address was not valid / not routable. Since April 2018 the address is part of CloudFlare's "Free" DNS product: <https://en.wikipedia.org/wiki/1.1.1.1>. (this test was originally written in 2016, before the service was launched)

      I've verified using local packet captures that running the test does result in IP traffic being sent to 1.1.1.1.
       
      An alternative value should be chosen (such as a reserved IP from RFC 6761) which will not result in runners of the test suit inadvertently sending IP packets to the CloudFlare service.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dfuchs Daniel Fuchs
              Reporter:
              jdowland Jonathan Dowland
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: