-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adapt to IPV6 envs #742
Adapt to IPV6 envs #742
Conversation
Usee `httpListenAddress` as default host There are no guarantees `localhost` is properly configured, specially in IPV6 environments
@@ -671,7 +671,7 @@ public URL getUrl() throws MalformedURLException { | |||
if (port == 0) { | |||
throw new IllegalStateException("This method must be called after calling #startJenkins."); | |||
} | |||
return new URL("http://" + host + ":" + port + "/jenkins/"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This failed when host
was an IPV6 ip
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this line was the only necessary change. The other change caused test regressions in other parts, so I'm proposing a revert of them in #776
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks right but @PereBueno why did this not come up during testing of #712?
Most likely system configuration. Some hosts/systems/OSes call Other hosts have 2 entries for |
Only leaves the relevant part which was to switch to the URL(String,String,String,String) constructor. The change from localhost to ip caused some test failures in Kubernetes context (It is invalid to provide an IP address as part of an ingress host name)
Reverts part of jenkinsci#742 Only leaves the relevant part which was to switch to the URL(String,String,String,String) constructor. The change from localhost to ip caused some test failures in Kubernetes context (It is invalid to provide an IP address as part of an ingress host name)
While running
workflow-durable-task-step
tests on a proprietary environment with only IPV6 networking enabled I found some parts of RJR that were not fully IPV6 compatible. This PR tries to fix those parts so RJR can be used in both IPV4 and IPV6 environments.Testing done
Submitter checklist