tst2005googlecode / step2

Automatically exported from code.google.com/p/step2
1 stars 0 forks source link

Unicode chars in First or Last name cause com.google.step2.VerificationException: 0x0 #35

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use an openID to login a user with a non English name. I found the problem 
with the first name: Smári

From the successful response ((ConsumerManager.java:1145) - Received positive 
auth response.) The nounce can't be parsed. For the above name this is the 
value in the url: openid.ext1.value.firstName=Sm%C3%A1ri

What is the expected output? What do you see instead?
I expected a successful login. I get this exception:
SEVERE: Servlet.service() for servlet CheckAuth threw exception
com.google.step2.VerificationException: 0x0: something went wrong during 
response verification, such as nonce or signature checking. Check your debug 
logs.
        at com.google.step2.ConsumerHelper.verify(ConsumerHelper.java:121)

What version of the product are you using? On what operating system?
version=1-SNAPSHOT on Ubuntu Linux - Built with and used under Sun JDK 1.6.0_18

Original issue reported on code.google.com by mitul.vi...@gmail.com on 26 Aug 2010 at 10:58

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
A common cause of this problem when using Tomcat or JBoss is that the connector 
isn't configured for UTF-8 encoding.  To fix the problem, set 
URIEncoding="UTF-8" on the tomcat connector in server.xml.  e.g. 
http://www.jspwiki.org/wiki/TomcatAndUTF8?version=11

Original comment by zestia.d...@gmail.com on 18 Apr 2011 at 11:30

GoogleCodeExporter commented 9 years ago
I have exactly the same problem. It fails when the user's First or Family Names 
contains accents.
I am using mod_proxy_ajp, and I configured the AJP Connector as

<Connector port="8009" protocol="AJP/1.3" useBodyEncodingForURI="true" 
uriencoding="UTF-8" redirectPort="8443" />

but to no avail.

Is there something I am missing? Something to configure on Apache side?

Original comment by egarcia@stream18.com on 12 Feb 2012 at 4:07