wwtaourl / openid4java

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

Typo bug in org.openid4java.message.ax.FetchRequest.getCount() #73

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
There is a typo in the argument passed to getParameterValue() in
FetchRequest getCount() 
if ("unlimited".equals(_parameters.getParameterValue("count" + alias)))
          return 0;

The "count" seems to be missing a period. I think it should be:
if ("unlimited".equals(_parameters.getParameterValue("count." + alias)))
          return 0;

Consequently, this function does not return the right value of 0 when
"count.alias:unlimited" is passed, and instead returns 1.

Original issue reported on code.google.com by stevew...@gmail.com on 3 Nov 2008 at 5:46

GoogleCodeExporter commented 8 years ago
Actually, it doens't return 1 - it throws a NumberFormatException.

Original comment by dirk.bal...@gmail.com on 3 Nov 2008 at 6:18

GoogleCodeExporter commented 8 years ago
Any update on this? It's a 1-character fix.

Original comment by stevew...@gmail.com on 20 Nov 2008 at 12:48

GoogleCodeExporter commented 8 years ago
Fixed in r516. (http://code.google.com/p/openid4java/source/detail?r=516)

Original comment by stevew...@gmail.com on 20 Nov 2008 at 5:49