Integrated: 8332020: jwebserver tool prints invalid URL in case of IPv6 address binding
Jaikiran Pai
jpai at openjdk.org
Sat May 11 04:35:10 UTC 2024
On Fri, 10 May 2024 09:21:15 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:
> Can I please get a review of this change which proposes to address https://bugs.openjdk.org/browse/JDK-8332020?
>
> `jwebserver` when it is launched prints a URL where the server is accessible. When launched using an IPv6 bind address, the printed URL doesn't enclose the IPv6 literal in `[` `]` thus rendering it in the form:
>
> URL http://0:0:0:0:0:0:0:1:8000/
>
> This is an incorrect representation. As noted in RFC-2732 https://www.rfc-editor.org/rfc/rfc2732#section-2, the host literal is expected to be enclosed between `[` and `]`.
>
> The commit in this PR addresses that issues. A new jtreg test has been introduced to reproduce this issue and verify the fix.
This pull request has now been integrated.
Changeset: f9a1d338
Author: Jaikiran Pai <jpai at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/f9a1d3381b12c97784c11649be079147c85939c0
Stats: 107 lines in 2 files changed: 106 ins; 0 del; 1 mod
8332020: jwebserver tool prints invalid URL in case of IPv6 address binding
Reviewed-by: dfuchs, vtewari
-------------
PR: https://git.openjdk.org/jdk/pull/19173
More information about the net-dev
mailing list