grnq / joid

Java OpenID = JOID OpenID providers and relying parties for OpenID 1.1 and 2.0
Other
4 stars 0 forks source link

Enter one-line summary #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Make an OpenID request by submitting a form that looks like this:

<form accept-charset="UTF-8"
action="http://localhost:8080/joid_examples/server"
enctype="application/x-www-form-urlencoded" id="openid_message"
method="post"><input name="openid.return_to" type="hidden"
value="http://localhost.localdomain:8001/process?janrain_nonce=2007-03-26T20%3A4
1%3A11ZlvOzNH"
/><input name="openid.realm" type="hidden"
value="http://localhost.localdomain:8001/" /><input name="openid.ns"
type="hidden" value="http://openid.net/signon/2.0" /><input
name="openid.claimed_id" type="hidden"
value="http://localhost/joiduser.html" /><input name="openid.mode"
type="hidden" value="checkid_setup" /><input name="openid.identity"
type="hidden" value="http://localhost/joiduser.html" /><input
name="openid.assoc_handle" type="hidden"
value="14f6e580-dbda-11db-bf84-019942b184cb" /><input type="submit"
value="Continue" /></form>

What is the expected output? What do you see instead?
Expected an id_res response. Got:
http://localhost.localdomain:8001/process?janrain_nonce=2007-03-26T20%3A39%3A27Z
ya45Ca?openid.ns:http://openid.net/signon/2.0&openid.mode=error&openid.error=BAD
_REQUEST

From the Tomcat log:
INFO  - org.verisign.joid.OpenIdException: Missing trust root

What version of the product are you using? On what operating system?
j3h@quinoa:~/java-stuff/joid$ svn info
Path: .
URL: http://joid.googlecode.com/svn/trunk
Repository Root: http://joid.googlecode.com/svn
Repository UUID: aa8f4b0c-f62a-0410-b554-e13d1092c3cc
Revision: 13
Node Kind: directory
Schedule: normal
Last Changed Author: hgranqvist
Last Changed Rev: 12
Last Changed Date: 2007-03-20 10:15:43 -0700 (Tue, 20 Mar 2007)

j3h@quinoa:~/java-stuff/joid$ uname -a
Linux quinoa 2.6.18-4-686 #1 SMP Wed Feb 21 16:06:54 UTC 2007 i686 GNU/Linux

j3h@quinoa:~/java-stuff/joid$ cat /etc/debian_version
4.0

j3h@quinoa:~/java-stuff/apache-tomcat-5.5.23$
JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.10/ ./bin/catalina.sh version
Using CATALINA_BASE:   /home/j3h/java-stuff/apache-tomcat-5.5.23
Using CATALINA_HOME:   /home/j3h/java-stuff/apache-tomcat-5.5.23
Using CATALINA_TMPDIR: /home/j3h/java-stuff/apache-tomcat-5.5.23/temp
Using JRE_HOME:       /usr/lib/jvm/java-1.5.0-sun-1.5.0.10/
Server version: Apache Tomcat/5.5.23
Server built:   Mar 5 2007 08:25:04
Server number:  5.5.23.0
OS Name:        Linux
OS Version:     2.6.18-4-686
Architecture:   i386
JVM Version:    1.5.0_10-b03
JVM Vendor:     Sun Microsystems Inc.

Original issue reported on code.google.com by joshh...@gmail.com on 26 Mar 2007 at 8:48

GoogleCodeExporter commented 9 years ago
Ugh. I can't edit it to fix the title. It should be "Missing trust root 
reported when
doing an OpenID 2.0 request"

Original comment by joshh...@gmail.com on 26 Mar 2007 at 8:49

GoogleCodeExporter commented 9 years ago
Hey! this has the openid.ns: bug, too!

Original comment by joshh...@gmail.com on 26 Mar 2007 at 9:01

GoogleCodeExporter commented 9 years ago
oh, and there are two question marks in the response URL

Original comment by joshh...@gmail.com on 26 Mar 2007 at 9:01

GoogleCodeExporter commented 9 years ago
Yes, there is a problem. I'll fix it. Meanwhile, if you change "realm" to the 
old "trust_root" it should work?

Original comment by hgranqv...@gmail.com on 27 Mar 2007 at 4:38

GoogleCodeExporter commented 9 years ago
Fixed in rev 14. 

Original comment by hgranqv...@gmail.com on 27 Mar 2007 at 5:40