MiguelAngelVega / openid4java

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

Error parsing Discovery document #180

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Perform discovery on Google Endpoint
2. Caused by: org.openid4java.discovery.DiscoveryException: 0x70d: Error 
parsing XML document
        at org.openid4java.discovery.xrds.XrdsParserImpl.parseXmlInput(XrdsParserImpl.java:197)
        at org.openid4java.discovery.xrds.XrdsParserImpl.parseXrds(XrdsParserImpl.java:50)
        at org.openid4java.discovery.yadis.YadisResolver.retrieveXrdsDocument(YadisResolver.java:301)
        at org.openid4java.discovery.yadis.YadisResolver.discover(YadisResolver.java:256)
        at org.openid4java.discovery.yadis.YadisResolver.discover(YadisResolver.java:232)
        at org.openid4java.discovery.yadis.YadisResolver.discover(YadisResolver.java:166)
        at org.openid4java.discovery.Discovery.discover(Discovery.java:147)
        at org.openid4java.discovery.Discovery.discover(Discovery.java:129)
        at org.openid4java.consumer.ConsumerManager.discover(ConsumerManager.java:542)
        at org.iitk.brihaspati.modules.actions.GoogleRequest.performDiscoveryOnUserSuppliedIdentifier(GoogleRequest.java:75)
        ... 42 more
Caused by: org.xml.sax.SAXParseException: s4s-att-invalid-value: Invalid 
attribute value for 'targetNamespace' in element 'schema'. Recorded reason: 
cvc-datatype-valid.1.2.1: 'xri://$xrd*($v*2.0)' is not a valid value for 
'anyURI'.
        at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
        at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
        at org.openid4java.discovery.xrds.XrdsParserImpl.parseXmlInput(XrdsParserImpl.java:188)
        ... 51 more

3.

What is the expected output? What do you see instead?
Discovery document(XRDS doc)

What version of the product are you using? On what operating system?
openid4java-full-0.9.6 on Linux

Please provide any additional information below.
I'm using Apache Xerces 2.11.0 Parser

Original issue reported on code.google.com by rpriyank...@gmail.com on 28 May 2012 at 10:50

GoogleCodeExporter commented 9 years ago
1. Perform discovery on google endpoint url (www.google.com/accounts/o8/id)

2. Get Error while parsing discovery document.

Original comment by rpriyank...@gmail.com on 30 May 2012 at 5:51

GoogleCodeExporter commented 9 years ago
I'm running my application from localhost and currently it doesn't have a 
domain name. Could that be a reason for failure in discovery process?

Original comment by rpriyank...@gmail.com on 17 Aug 2012 at 2:19

GoogleCodeExporter commented 9 years ago
Works for me by just calling 
Discovery.discover("https://www.google.com/accounts/o8/id") from a test case, 
without running an RP.

Please post more info, complete steps to reproduce if still an issue.

Original comment by Johnny.B...@gmail.com on 31 Oct 2012 at 8:31