missing method (Grease - Seaside?) - invalidUtf8

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

missing method (Grease - Seaside?) - invalidUtf8

kuszi
Hello!

I have a form, having a submint button titled 'Belépés' which is a byteString in the source code. From debug I know that it has problem with the 'é'

WAComancheAdaptor is used, set to UTF-8
Form has two text fields, one text, one password.

The error is here:

Internal Server Error

MessageNotUnderstood: GRPharoUtf8Codec>>invalidUtf8
KomHttpServer/7.1.3 (unix) Server at 'localhost' Port 8080

Actually there is really no invalidUtf8 method...
Same in Chrome and Firefox.

Generated source from the browser:
<!DOCTYPE html><html><head><title>Seaside</title><meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>

[....]

<form accept-charset="utf-8" method="post" action="/upload?_s=DmRzKcsi0N3do5uR&amp;_k=f4Uk-txWdDmSbrqa">
<table><tr><td><strong>E-mail:</strong></td><td><input name="1" value="" type="text" class="text"/></td></tr>
<tr><td><strong>Jelszó:</strong></td><td><input name="2" value="" type="password" class="password"/></td></tr>
<tr><td><strong> </strong></td><td><input name="3" value="Belépés" type="submit" class="submit"/></td></tr>
</table></form>


What else to check? I don't understand what the problem is.

Thanks
Robert





_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: missing method (Grease - Seaside?) - invalidUtf8

Johan Brichau-2
Hi Robert,

The missing method is indeed a mistake in the GRPharoUtf8Codec. I added it and published Grease 1.2.6 with the bugfix.
However, you will now get the ‘Invalid utf8’ error instead, which is not solving your problem.

The issue is that the decoder is trying to decode an invalid utf8 bytesequence. You need to check where that is coming from.
Set the WADebugErrorHandler as the exception handler for your application to debug which one it is.

Johan

On 17 Jan 2016, at 19:03, Robert Kuszinger <[hidden email]> wrote:

Hello!

I have a form, having a submint button titled 'Belépés' which is a byteString in the source code. From debug I know that it has problem with the 'é'

WAComancheAdaptor is used, set to UTF-8
Form has two text fields, one text, one password.

The error is here:

Internal Server Error

MessageNotUnderstood: GRPharoUtf8Codec>>invalidUtf8
KomHttpServer/7.1.3 (unix) Server at 'localhost' Port 8080

Actually there is really no invalidUtf8 method...
Same in Chrome and Firefox.

Generated source from the browser:
<!DOCTYPE html><html><head><title>Seaside</title><meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>

[....]

<form accept-charset="utf-8" method="post" action="/upload?_s=DmRzKcsi0N3do5uR&amp;_k=f4Uk-txWdDmSbrqa">
<table><tr><td><strong>E-mail:</strong></td><td><input name="1" value="" type="text" class="text"/></td></tr>
<tr><td><strong>Jelszó:</strong></td><td><input name="2" value="" type="password" class="password"/></td></tr>
<tr><td><strong> </strong></td><td><input name="3" value="Belépés" type="submit" class="submit"/></td></tr>
</table></form>


What else to check? I don't understand what the problem is.

Thanks
Robert




_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: missing method (Grease - Seaside?) - invalidUtf8

kuszi
Johan,

thanks for your work and also the recommendation. I'll continue as you'd mentioned.

regards
Robert


Johan Brichau <[hidden email]> ezt írta (időpont: 2016. jan. 18., H, 8:31):
Hi Robert,

The missing method is indeed a mistake in the GRPharoUtf8Codec. I added it and published Grease 1.2.6 with the bugfix.
However, you will now get the ‘Invalid utf8’ error instead, which is not solving your problem.

The issue is that the decoder is trying to decode an invalid utf8 bytesequence. You need to check where that is coming from.
Set the WADebugErrorHandler as the exception handler for your application to debug which one it is.

Johan



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside