Details
-
Bug
-
Resolution: Not a Bug
-
Minor
-
None
-
3.14.0.Final, 4.6.0.Final
-
None
Description
In the next line, regex information has no impact on the resulting URI
UriBuilder.fromUri("foo/{bar:[a-z]{3}}").build("baz"); // gives "foo/baz"
In the next line, the regex information messes up the resulting URI because there's a leading case-insensitive flag
UriBuilder.fromUri("foo/{bar:(?i)[a-z]{3}}").build("baz"); // gives "foo/%7Bbar:(?i)%5Ba-z%5Dbaz%07"
It is not clear from the spec if UriBuilder can accept path params with regex (like @Path does) but if it does, there's a problem with some flags.