Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Submitting a cgi-bin POST form results in "Null charset name" exception jetty-distribution-9.4.21.v20190926

There is now a fix for this in the 9.4.x branch and will be in a 9.4.23 release.

For a workaround you should be able to use the RewriteHandler to default the charset to utf-8.

On Thu, Oct 24, 2019 at 2:25 AM Brian Reichert <reichert@xxxxxxxxxxx> wrote:
On Wed, Oct 23, 2019 at 04:51:57AM +0000, Gary Kopff wrote:
> jetty-distribution-9.4.21.v20190926
> jre1.8.0_231
>
> Create a HTML form using the POST method :-
>
> <form  name="frm" method=post action="" href="http://your_company.com/your_company/cgi-bin/form.pl" rel="noreferrer" target="_blank">http://your_company.com/your_company/cgi-bin/form.pl" accept-charset="utf-8">
>   First name: <input type="text" name="fname"><br>
>   Last name: <input type="text" name="lname"><br>
>   <input type="submit" value="Submit">
> </form>
>
> Submit the form.
>
> Jetty throws the following exception :-
> HTTP ERROR 500 java.lang.IllegalArgumentException: Null charset name
> URI:    /your_company/cgi-bin/form.pl

Make sure you secretly don't have any wacky nulls or whitespace characters
in that HTML form.

> _______________________________________________
> jetty-users mailing list
> jetty-users@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/jetty-users


--
Brian Reichert                          <reichert@xxxxxxxxxxx>
BSD admin/developer at large   
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users

Back to the top