Issue 212 in openid4java: Get back DiscoveryInformation from session cause cast exception

8 views
Skip to first unread message

codesite...@google.com

unread,
Sep 3, 2014, 4:48:20 AM9/3/14
to openid4java-...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 212 by balmydri...@gmail.com: Get back DiscoveryInformation from
session cause cast exception
https://code.google.com/p/openid4java/issues/detail?id=212

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.

Attachments:
ReceiveResponse.java 1.2 KB
RegisterService.java 2.6 KB
RegistrationAction.java 1.2 KB

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages