Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-ASCII characters in attributes break identification #141

Closed
GoogleCodeExporter opened this issue Jun 4, 2015 · 4 comments
Closed

Non-ASCII characters in attributes break identification #141

GoogleCodeExporter opened this issue Jun 4, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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

  • Changed state: Invalid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant