Browse Source

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
pull/33665/head
rstoyanchev 1 year ago
parent
commit
e04b115a7e
  1. 4
      spring-web/src/test/java/org/springframework/web/util/UriComponentsBuilderTests.java

4
spring-web/src/test/java/org/springframework/web/util/UriComponentsBuilderTests.java

@ -238,10 +238,6 @@ class UriComponentsBuilderTests { @@ -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

Loading…
Cancel
Save