jbufu / openid4java

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

Get back DiscoveryInformation from session cause cast exception #212

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Call DiscoveryInformation's associate method in auth request servlet and 
store the returned object in seesion with: request.getSession().setAttribute
2. Later, in auth response servlet, get back object with: DiscoveryInformation 
dci = (DiscoveryInformation) request.getSession().getAttrbiute;
System.out.println("discovery information = " + dci.toString());
3. auth request url and return_to url both start with same hostname and ap 
context

What is the expected output? What do you see instead?
Expected to see string version of discovery information dump. Instead, Tomcat 
shows "org.openid4java.discover.DiscoveryInformation can't cast to 
org.openid4java.discover.DiscoveryInformation" strange error message.

What version of the product are you using? On what operating system?
version 0.9.8.741 on Windows 7 w/ Tomcat 6

Please provide any additional information below.
Our test procedure:
1.Run 'Registertration to enter an Yahoo openid (and in turn calls 
RegisterService)
2.Auth ok, so Yahoo call backs our ReceiveResponse
3.The it causes the cast exception error.

Original issue reported on code.google.com by balmydri...@gmail.com on 3 Sep 2014 at 8:48

Attachments: