-
Bug
-
Resolution: Done
-
Minor
-
3.9.1.Final, 4.5.1.Final
-
None
When using UriBuilder.replaceQueryParam() to remove query parameters, trailing '?' and '&' may remain in the produced URI.
UriBuilder.fromUri("http://example.com/api?foo=bar").replaceQueryParam("foo").build(); // gives http://example.com/api? UriBuilder.fromUri("http://example.com/api?foo=bar&foobar=qux").replaceQueryParam("foo").build(); // gives http://example.com/api?foobar=qux&
I tested with Jersey which gives correct URIs (without '?' and '&').