For the readers but not Jira followers:
https://issues.jboss.org/browse/RESTEASY-1038?focusedCommentId=12956653&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-12956653
(and next one)

--
Lucas



2014-03-26 15:21 GMT+01:00 Bill Burke <bburke@redhat.com>:
Unfortunately for you:

/some?next=%2Fcome_again?t%3D1234

Is a legal URI.  There's actually a JAXRS TCK testcase for this.

On 3/26/2014 9:29 AM, Bill Burke wrote:
> You're in luck, I'm working on Resteasy this week and will get to it today:
>
> https://issues.jboss.org/browse/RESTEASY-1038
>
>
> On 3/26/2014 5:04 AM, Luc wrote:
>> Watching the archive
>> (http://sourceforge.net/p/resteasy/mailman/message/32142270/) I see that
>> my message is not seen, so I will send without format. Sorry for spam >.<
>>
>> ____________________
>>
>> I've been using UriBuilder to build redirect URIs inside a web application.
>> Until now, I only builded simple query parameters, but today I wanted to
>> build an URI inside a queryParam.
>>
>> The URI to be used as query is builded like:
>>   > UriBuilder toQuery =
>> UriBuilder.fromPath("/come_again").queryParam("t", "1234");
>>
>> The main URI which will hold this one is builded:
>>   > URI builded = UriBuilder.fromPath("/some").queryParam("next",
>> toQuery.build().toASCIIString()).build();
>> I've tryied other ways (with build template arguments too, and using
>> buildFromEncoded) but none of them produced the expected URI.
>>
>> Expected should be:
>>   > /some?next=%2Fcome_again%3Ft%3D1234
>> But the result is:
>>   > /some?next=%2Fcome_again?t%3D1234
>>
>> All parameters get encoded, except the question mark.
>> I've attach a JUnit test class.
>>
>> The main problem (which I found debugging) is with
>> 'org.jboss.resteasy.util.Encode.queryNameValueEncoding', which considers
>> as not encodeable char the question mark. But I think, that it should be
>> encoded inside a query, if I understand correctly an URI format....
>>
>> I'm building incorrectly this URI?
>> Is a JAX-RS spec problem?
>> Should file a RESTEasy bug?
>>
>> Thanks!
>> --
>> Lucas
>>
>>
>> ------------------------------------------------------------------------------
>> Learn Graph Databases - Download FREE O'Reilly Book
>> "Graph Databases" is the definitive new guide to graph databases and their
>> applications. Written by three acclaimed leaders in the field,
>> this first edition is now available. Download your free book today!
>> http://p.sf.net/sfu/13534_NeoTech
>>
>>
>>
>> _______________________________________________
>> Resteasy-developers mailing list
>> Resteasy-developers@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/resteasy-developers
>>
>

--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Resteasy-developers mailing list
Resteasy-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-developers