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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 18
    • None
    • core-libs
    • None
    • 9
    • b15

      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.

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

              Created:
              Updated:
              Resolved: