users@jersey.java.net

Re: [Jersey] Re: Form parameters + glassfish 3.1

From: Paul Sandoz <Paul.Sandoz_at_oracle.com>
Date: Thu, 2 Sep 2010 10:29:38 +0200

On Sep 1, 2010, at 7:55 PM, John Lister wrote:

>
>
> Paul Sandoz wrote:
>> Thanks for finding the cause. I think this is a CDI/Weld issue and
>> logged a bug against GF/CDI. I can even reproduce using a Servlet.
>>
> No problem, unfortunately I didn't have time to go through the
> source to narrow it down further.
>

My suspicion is that Weld/CDI is calling either hashcode or toString
on the servlet request and that is resulting in a call to
getParameters().


> One more thing, can I ask how @FormParam works yet Form doesn't if
> something is stripping the request body?
>

It is because the message body reader for the type Form is generic to
the client and server and knows nothing about server request
parameters. To fix this we need to introduce a specific Form message
body reader for the server that first checks a request property.

Paul.