Expected Behavior
Getting a io.micronaut.http.exceptions.UriSyntaxException when trying to build a URI with
UriBuilder.of(url).build()
where url I am trying to build is https://abc.com/XXX/YYY;abcd=${ABCD};ab_cd=1
Error seems to be related to having {} in path.
Actual Behaviour
Throwing
Illegal character in path at index 35: https://abc.com/XXX/YYY;abcd=${ABCD};ab_cd=1
Steps To Reproduce
String url = "https://abc.com/XXX/YYY;abcd=${ABCD};ab_cd=1";
URI uri = UriBuilder.of(url).build();
Environment Information
MacOS 26.2
JDK 17
Example Application
No response
Version
4.10.1