Skip to content

Commit e04b115

Browse files
committed
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
1 parent 92308ac commit e04b115

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Diff for: spring-web/src/test/java/org/springframework/web/util/UriComponentsBuilderTests.java

-4
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,6 @@ void fromUriStringIPv6Host() {
238238
UriComponents result = UriComponentsBuilder
239239
.fromUriString("http://[1abc:2abc:3abc::5ABC:6abc]:8080/resource").build().encode();
240240
assertThat(result.getHost()).isEqualToIgnoringCase("[1abc:2abc:3abc::5ABC:6abc]");
241-
242-
UriComponents resultIPv4compatible = UriComponentsBuilder
243-
.fromUriString("http://[::192.168.1.1]:8080/resource").build().encode();
244-
assertThat(resultIPv4compatible.getHost()).isEqualTo("[::c0a8:101]");
245241
}
246242

247243
@Test

0 commit comments

Comments
 (0)