LLG20111699 / openid4java

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

Not properly reading attribute exchange parameters #50

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The library does not quite handle the spec for attribute exchange.

The value returned from the server has the following definition:

openid.ax.value.<alias>.<number>
Assigns a value to the attribute referred to as <alias>. This parameter format 
MUST be used if 
"openid.ax.count.<alias>" is sent and at least one value is provided for the 
associated attribute.

However, in FetchResponse.java and the method public String 
getAttributeValue(String alias), it 
only attached <number> if getCount(alias) > 1. It should not use 
getCount(alias) since getCount 
has special code.

Patch attached.

Original issue reported on code.google.com by cmeyer1...@gmail.com on 2 Feb 2008 at 2:50

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed in rev452. Thanks for the patch Chris!

Original comment by Johnny.B...@gmail.com on 4 Feb 2008 at 11:47