Integrated: JDK-8262899: TestRedirectLinks fails
Jonathan Gibbons
jjg at openjdk.java.net
Mon Mar 29 16:17:00 UTC 2021
On Mon, 22 Mar 2021 22:26:08 GMT, Jonathan Gibbons <jjg at openjdk.org> wrote:
> Please review a trivial change to fix this test when run behind a firewall with a proxy set.
>
> Previously, the test used `InetAddress.getLocalHost` which returns an IP address for the current host. It runs a temporary local web server on that address, but since the address is typically not on the `nonProxyHosts` list, the attempted access to the web server goes to the proxy, and fails.
>
> The fix is to explicitly use `127.0.0.1`, which should never go to a proxy, if one is set.
This pull request has now been integrated.
Changeset: f17ea9e6
Author: Jonathan Gibbons <jjg at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/f17ea9e6
Stats: 40 lines in 2 files changed: 32 ins; 0 del; 8 mod
8262899: TestRedirectLinks fails
Reviewed-by: prappo
-------------
PR: https://git.openjdk.java.net/jdk/pull/3137
More information about the javadoc-dev
mailing list