Closed GoogleCodeExporter closed 8 years ago
Original comment by philipp.sebastian.thun
on 20 Mar 2012 at 10:15
This is working for me in tip, url sent is:
GET http://odata.twitpic.com/Tags('starbucks')/Images?$orderby=Views+desc&$top=5
Not: Views%2Bdesc (double encoded)
Original comment by john.spurlock
on 25 Mar 2012 at 8:14
Okay, I found the cause for this strange behavior. For me it was only working,
when I switched to the CXF consumer. The Jersey consumer always sent the
encoded + sign. But when debugging the ODataJerseyClient.doRequest method, I
could see that the UriBuilder (that is used within the WebResource) was of type
org.apache.cxf.jaxrs.impl.UriBuilderImpl. When I added the code to explicitly
use the Jersey implementation of RuntimeDelegate, the example worked fine...
So the question is, how do we ensure that the correct JAX-RS implementation is
loaded when running an example? Should we add this to the JaxRsImplementation
class? Or more general to OData[Jersey|Cxf][Consumer|Server]? But the later
might be the wrong place, as in productive scenarios, there should be only one
JAX-RS implementation available. Any suggestions?
Original comment by philipp.sebastian.thun
on 26 Mar 2012 at 2:21
Fixed with revision 1a6da031f6ec.
Original comment by philipp.sebastian.thun
on 26 Apr 2012 at 5:53
Original issue reported on code.google.com by
philipp.sebastian.thun
on 19 Mar 2012 at 5:55