users@jersey.java.net

[Jersey] Re: UriBuilder does not properly encode query parameters?

From: Martynas Jusevičius <martynas_at_graphity.org>
Date: Wed, 21 Aug 2013 13:12:45 +0300

I'm using Jersey 1.16 by the way. Could this be a bug?

On Wed, Aug 21, 2013 at 1:09 PM, Martynas Jusevičius
<martynas_at_graphity.org> wrote:
> Hey all,
>
> I'm passing URI as query parameter to UriBuilder:
>
> builder.queryParam("mode", "http://client.graphity.org/ontology#TableMode")
>
> I expect it to get fully URI-encoded, but what I get instead is
>
> &mode=http://client.graphity.org/ontology%23TableMode
>
> where slashes are left unencoded. I tried buildFromEncoded() as well,
> but the result it the same.
>
> Why this weird behavior and how can I work around it?
>
> Martynas
> graphityhq.com