takcy / openid4java

Automatically exported from code.google.com/p/openid4java
Apache License 2.0
0 stars 0 forks source link

Non-ASCII characters in attributes break identification #141

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Try to login including an attribute whose value contains a non-ascii 
characters.  For example an accented character like the "Ó" in "Óscar" in the 
user first name.

Request this attribute this way:

fetch.addAttribute("firstName", "http://axschema.org/namePerson/first", true);

What is the expected output? What do you see instead?

The expected output of the "getVerifiedId()" method at the return servlet is 
the user URL, but we instead get null when the username contains accented 
characters:

Identifier identifier = verification.getVerifiedId();

Everything works OK if I change my first name to "Oscar" in the openid provider 
(Google in this case).

What version of the product are you using? On what operating system?

0.9.5

Please provide any additional information below.

Original issue reported on code.google.com by ofr...@gmail.com on 22 Dec 2010 at 11:26

GoogleCodeExporter commented 8 years ago
I fixed the issue by setting URIEncoding=UTF-8 in Tomcat's server.xml

Original comment by ofr...@gmail.com on 8 Feb 2011 at 6:04

GoogleCodeExporter commented 8 years ago
I'd like to revive this issue. When attributes contain a non-latin character, 
then verification fails for Yahoo and Google openID.

The previous commenter's solution didn't work for me

Original comment by g.georgovassilis@gmail.com on 15 Jun 2011 at 10:52

GoogleCodeExporter commented 8 years ago
Apologies, the UTF8 trick did work - for some reason I had to redeploy the 
webapp first.

Original comment by g.georgovassilis@gmail.com on 15 Jun 2011 at 11:12

GoogleCodeExporter commented 8 years ago
URL/URIs only support ASCII; URL identifiers with other characters must be 
encoded into a URI in the stack on top of OpenID/openid4java.

Original comment by Johnny.B...@gmail.com on 31 Oct 2012 at 10:45