Issue 199 in openid4java: ClassCastException in org/openid4java/message/ax/FetchResponse

1 view
Skip to first unread message

codesite...@google.com

unread,
Oct 15, 2013, 3:15:37 PM10/15/13
to openid4java-...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 199 by christop...@gmail.com: ClassCastException in
org/openid4java/message/ax/FetchResponse
http://code.google.com/p/openid4java/issues/detail?id=199

What steps will reproduce the problem?
1. Request AX attribute with count == 0
2. Get a ClassCastException

What is the expected output? What do you see instead?

It should return all values. Instead it crashes.


What version of the product are you using? On what operating system?

0.9.7

Please provide any additional information below.

From
org.openid4java.message.ax.FetchResponse.createFetchResponse(FetchRequest,
Map):

Iterator values = ((List)value).iterator();

// only send up the the maximum requested number
int max = req.getCount(alias);
if (max == 0)
max = ((List)values).size(); // <-- this is the class
cast exception

Last line should read:

max = ((List)value).size();

(value is a List, values is an Iterator).


--
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