Khozzy
Khozzy

Reputation: 1103

Mojarra 2.2.3 encoding request parameters

Problems started when I upgraded Mojarra from 2.2.1 to 2.2.3 (JBoss Wildfly Alpha to Beta).

When I try to submit a form (POST) with special characters (polish letters) they aren't properly UTF-8 encoded.

What I have done?

Finally I'm still ending with improper encoding: enter image description here

Upvotes: 1

Views: 1307

Answers (2)

Khozzy
Khozzy

Reputation: 1103

The problem was in Undertow encoding.

Solution here: https://issues.jboss.org/browse/WFLY-2533

Upvotes: 2

Ritzelprimpf
Ritzelprimpf

Reputation: 186

here is a Bug about this:

https://issues.jboss.org/browse/WFLY-2550

and here is one possible solution:

add this after your filter in web.xml:

<filter-mapping>
    <filter-name>CDI Conversation Filter</filter-name>
    <url-pattern>/*</url-pattern>
</filter-mapping>

as described here:

http://weld.cdi-spec.org/documentation/#3

Regards,

Martin

Upvotes: 1

Related Questions