Hi,

This isn't too serious to me, but I am seeing some strange behavior when I have 
both a PathParam and a QueryParam, and an encoded query.

I have a service with an interface as follows:

        @Produces({"application/xml","text/xml"})
        @GET
        @Path("/get/{userid}")
        public String getCartXML(@PathParam("userid") String userId,
                                         @QueryParam("start") String start)
                                         @QueryParam("limit") String limit) 
[..]                                         

If I invoke the service with the following query:

/services/event/cart/get/linus?limit=all

I see in my logs:

userid = linus, limit = all

and all is good.

However, if I use:

/services/event/cart/get/linus%3Flimit%3Dall

I see in my logs:

userid = linus?limit=all, limit = null

and, of course, not happy.

Am I doing something wrong in the mixing of path and query params?

cheers,
Linus



Reply via email to