SPNEGO and International Characters

36 views
Skip to first unread message

Paul Carroll

unread,
May 4, 2023, 11:49:18 AM5/4/23
to WildFly
Hello,  I am currently using Wildfly 14.0.1 with Amazon Corretto 11.  I have SSO configured using the SPNEGO mechanism.  My web.xml has the following <auth-method>.

<auth-method>SPNEGO,FORM</auth-method>

When I submit form data that contains international characters such as à, the resulting data is modified to Ã on the server side.

If I remove SPNEGO from my <auth-method> in web.xml and only use FORM, the form data is correct on the server side.  Also, if the international character is part of the query string, it is also correct on the server side.  It seems to only pertain to form data when the form is posted.

Is there some encoding going on when the SPNEGO <auth-method> is enabled?  Is there a property in standalone-full.xml that may be set to prevent this behavior?

Thank you for any assistance.

Bartosz Baranowski

unread,
May 8, 2023, 1:53:51 AM5/8/23
to WildFly
Could you please update WFLY? Im fairly  sure I remember some changes WRT character encoding/decoding. This might have been fixed already.

Paul Carroll

unread,
May 8, 2023, 10:03:32 AM5/8/23
to WildFly
Thanks but I am not in a position right now to upgrade Wildfly.  We have multiple instances of our application in production.  Do you know of a class file that I may be able to modify and compile and fix it until I am able to upgrade.  Thank you.

Bartosz Baranowski

unread,
May 9, 2023, 4:18:47 AM5/9/23
to WildFly
Id say your best bet is to check undertow upgrades. However, Im fairly sure that WFLY 14 is running on 2.0.x, which has not received updates for some time now, so changes that fiddle with char encoding might not be in this branch.
Reply all
Reply to author
Forward
0 new messages