I know that strictly a Yadis document shouldn't have an empty <URI>
element. However, poorly formed documents do exist so I suggest skipping a
service with an empty URI rather than failing altogether as it does at the
moment. This is the approach currently taken if the contents of a URI are
malformed.
Here's a patch to make it skip empty URI elements:
Index:
C:/Users/tlocke/workspace/openid4java/src/org/openid4java/discovery/Discove
ry.java
===================================================================
---
C:/Users/tlocke/workspace/openid4java/src/org/openid4java/discovery/Discove
ry.java (revision 411)
+++
C:/Users/tlocke/workspace/openid4java/src/org/openid4java/discovery/Discove
ry.java (working copy)
@@ -322,6 +322,9 @@
} catch (MalformedURLException e)
{
continue;
+ } catch (IllegalArgumentException e)
+ {
+ continue;
}
if (matchType(service, DiscoveryInformation.OPENID2_OP))
Original issue reported on code.google.com by tlocke...@yahoo.co.uk on 10 Nov 2007 at 3:11
Original issue reported on code.google.com by
tlocke...@yahoo.co.uk
on 10 Nov 2007 at 3:11