users@grizzly.java.net

RE: Error in Form-Parameter conversion

From: Gajanan <gajanan.x.kulkarni_at_oracle.com>
Date: Sat, 17 Aug 2013 05:48:58 +0530

Reason could be that request is coming in smaller chunks and grizzly misses a char while joining the chunks seen similare issue on sailfin in the fast. To reproduce u need simple code which writes request in small chunks.

Sent from my Xperia™ smartphone

André Wallat <andre.wallat_at_gmail.com> wrote:

>Hello,
>
>I came across a strange error when I access my server from the iPad browser
>Safari. Most of the times the first character of the first form parameter
>is removed, so instead of "username" the parameter "sername" is received in
>my ContainerRequestFilter. All the other parameters are fine. Other
>browsers like Chrome, Firefox and even Android worked okay.
>
>Any ideas? Maybe someone can open up an issue for this?
>
>Here a bit more detailed scenario:
>I send a post request with jQuery (v1.10.2) to my server after I access my
>website the first time. I think here it even works to transmit/convert the
>form parameter correctly, but when I submit the data a second time, then
>the first form parameter is losing its first character. My website is a
>single-page-app created with AngularJS.
>With firefox light I could check the POST-request and the submitted
>parameters were correct. So it has to be an error in grizzly!?
>
>My workaround so far is to add a dummy-Parameter as the first parameter, so
>that the other parameters stay okay.
>
>Client: Safari iOS iPad 6.1.3
>Server: Grizzly 2.3.5
>
>Cheers,
>André