mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-20 20:59:07 +00:00
RfcParser rejects invalid IPv6 host
Fix gh-36787
This commit is contained in:
committed by
Brian Clozel
parent
ba0a9b8923
commit
322eef2942
+4
-1
@@ -267,7 +267,10 @@ class UriComponentsBuilderTests {
|
||||
@EnumSource
|
||||
void fromUriStringInvalidIPv6Host(ParserType parserType) {
|
||||
assertThatIllegalArgumentException().isThrownBy(() ->
|
||||
UriComponentsBuilder.fromUriString("http://[1abc:2abc:3abc::5ABC:6abc:8080/resource", parserType));
|
||||
UriComponentsBuilder.fromUriString("https://[1abc:2abc:3abc::5ABC:6abc:8080/resource", parserType));
|
||||
|
||||
assertThatIllegalArgumentException().isThrownBy(() ->
|
||||
UriComponentsBuilder.fromUriString("https://[1abc:2abc:3abc::5ABC:6abc]resource", parserType));
|
||||
}
|
||||
|
||||
@ParameterizedTest // gh-36759
|
||||
|
||||
Reference in New Issue
Block a user