From e04b115a7ef1987a2dceebd1963bb54a4708bc18 Mon Sep 17 00:00:00 2001 From: rstoyanchev Date: Mon, 30 Sep 2024 11:23:05 +0100 Subject: [PATCH] Remove test for IPv4 compatible IPv6 address An example of this can be found in RFC 2732, but it is obsoleted by RFC 3986 whose syntax for IPv6address does not allow dots. Also, Appendix D of RFC 3986: As [RFC2732] defers to [RFC3513] for definition of an IPv6 literal address, which, unfortunately, lacks an ABNF description of IPv6address, we created a new ABNF rule for IPv6address that matches the text representations defined by Section 2.2 of [RFC3513]. See gh-33639 --- .../springframework/web/util/UriComponentsBuilderTests.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/spring-web/src/test/java/org/springframework/web/util/UriComponentsBuilderTests.java b/spring-web/src/test/java/org/springframework/web/util/UriComponentsBuilderTests.java index a5face72d17..4abb0f13136 100644 --- a/spring-web/src/test/java/org/springframework/web/util/UriComponentsBuilderTests.java +++ b/spring-web/src/test/java/org/springframework/web/util/UriComponentsBuilderTests.java @@ -238,10 +238,6 @@ class UriComponentsBuilderTests { UriComponents result = UriComponentsBuilder .fromUriString("http://[1abc:2abc:3abc::5ABC:6abc]:8080/resource").build().encode(); assertThat(result.getHost()).isEqualToIgnoringCase("[1abc:2abc:3abc::5ABC:6abc]"); - - UriComponents resultIPv4compatible = UriComponentsBuilder - .fromUriString("http://[::192.168.1.1]:8080/resource").build().encode(); - assertThat(resultIPv4compatible.getHost()).isEqualTo("[::c0a8:101]"); } @Test