Fedora: login failed if name contains non-ascii characters

Description

For the instances using FAS, if the name contains non-ascii characters like "測試", the user failed to login with error message "Login failed"

Environment

None

Activity

Show:
Alex Eng
July 25, 2016, 10:48 AM
Edited

Tried:
JBoss standalone.xml settings (worked):

  • <property name="org.apache.catalina.connector.URI_ENCODING" value="UTF-8"/>

  • <property name="org.apache.catalina.connector.USE_BODY_ENCODING_FOR_QUERY_STRING" value="true"/>

ServletFilter (does not work):
Set request and response encoding in ServletFilter for openid url, but not working. It only supports POST action for the req/res body but not URI.

https://dertompson.com/2007/01/29/encoding-filter-for-java-web-applications/

Use openid4java library for parsing parameters (worked):

  • bypass param encoded with servlet `req.getParameterMap` in openId by using `ParameterList.createFromQueryString(httpReq.getQueryString());` when processing response from openid.

https://groups.google.com/forum/#!topic/openid4java/GkAa8FQBMGE

Alex Eng
July 25, 2016, 7:23 AM
Edited
Ding-Yi Chen
July 25, 2016, 4:15 AM

Workaround: change the name to contains ascii only

Ready for Release

Assignee

Alex Eng

Reporter

Ding-Yi Chen

Labels

Tested Version/s

None

Time remaining

0m

Sprint

None

Fix versions

Affects versions

Priority

High