grnq / joid

Java OpenID = JOID OpenID providers and relying parties for OpenID 1.1 and 2.0
Other
4 stars 0 forks source link

If OpenID IP cert is invalid consumer fails with null pointer #35

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create an IP with an invalid SSL cert
2. Attempt to login against the IP
You will receive a null pointer exception.

What is the expected output? What do you see instead?
Some message about the bad cert or other indication that there is an error on 
the IP side.

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

Please provide any additional information below.
Patch attached.

Changed the JoidConsumer.getProps() so that:
1.  It can throw an OpenIDException
2.  it only catches IOException and then throws OpenIDException()

Original issue reported on code.google.com by cla...@xenei.com on 14 May 2012 at 3:24

Attachments: