You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
URI uri = UriBuilder.fromUri("http://host.com/path%20path/.test.jpg").build();
Link link = Link.fromUri(uri).build();
build() throws an
java.lang.IllegalArgumentException: Illegal character in path at index 20: http://host.com/path path/.test.jpg
at java.base/java.net.URI.create(URI.java:883)
at org.glassfish.jersey.uri.UriTemplate.normalize(UriTemplate.java:375)
at org.glassfish.jersey.message.internal.JerseyLink$Builder.resolveLinkUri(JerseyLink.java:151)
at org.glassfish.jersey.message.internal.JerseyLink$Builder.build(JerseyLink.java:138)
at org.glassfish.jersey.message.internal.JerseyLink$Builder.build(JerseyLink.java:50)
Seems like the /. in the url is normalized according to RFC 3986, the string is url decoded but not probably encoded again afterwards.
The text was updated successfully, but these errors were encountered:
This happens in Jersey 2.40
build() throws an
Seems like the
/.
in the url is normalized according to RFC 3986, the string is url decoded but not probably encoded again afterwards.The text was updated successfully, but these errors were encountered: