- From: ryan <ryan@theryanking.com>
- Date: Thu, 14 Jun 2007 10:23:41 -0700
- To: olivier Thereaux <ot@w3.org>
- Cc: www-validator@w3.org
On Jun 14, 2007, at 5:23 AM, olivier Thereaux wrote: > On May 29, 2007, at 21:08 , ryan wrote: >> I'm trying to use the feed validation service at http:// >> validator.w3.org/feed/, but I'm encountering a few problems– >> >> * Pasting the contents of the feed into the form and hitting >> submit gives me an error page. I've tried several feeds and always >> get an error. (FWIW, I'm using Safari 2.0.4) > > Could you send the content of one of the feeds you tried? (to me > only if its content should not be public). I know that the direct > input interface of the feed validator is somewhat more fragile than > the one for online resources, but I tried with a couple of them and > validation was performed without problem. Here's an example: <?xml version="1.0" encoding="UTF-8"?> <feed xmlns="http://www.w3.org/2005/Atom" xml:base="http:// example.com/a01-simple.html"> <updated>2007-05-25T11:49:58-07:00</updated> <id>http://example.com/a01-simple.html</id> <link rel="alternate" href="http://example.com/a01-simple.html" type="text/html"/> <title>a01 simple</title> <entry> <title>Simplest possible entry</title> <id>http://example.com/a01-simple.html#foo</id> <link rel="alternate" href="http://example.com/a01- simple.html#foo" type="text/html"/> <updated>2007-05-25T11:49:58-07:00</updated> <author> <name>Ryan King</name> </author> </entry> </feed> >> * The soap interface seems to likewise be broken. I tried >> accessing it with the ruby library [1], but it appears to be >> returning python stack traces of errors. > > Can you send the trace, and context? I just tried the soap output > that the ruby library should be using, and as far as I can tell it > is functional. The raw http post body: rawdata=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%0A% 3Cfeed+xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2005%2FAtom%22+xml%3Abase% 3D%22http%3A%2F%2Fexample.com%2Fa01-simple.html%22%3E%0A++%3Cupdated% 3E2007-05-25T11%3A49%3A58-07%3A00%3C%2Fupdated%3E%0A++%3Cid%3Ehttp%3A% 2F%2Fexample.com%2Fa01-simple.html%3C%2Fid%3E%0A++%3Clink+rel%3D% 22alternate%22+href%3D%22http%3A%2F%2Fexample.com%2Fa01-simple.html%22 +type%3D%22text%2Fhtml%22%2F%3E%0A++%3Ctitle%3Ea01+simple%3C%2Ftitle% 3E%0A++%3Centry%3E%0A++++%3Ctitle%3ESimplest+possible+entry%3C%2Ftitle %3E%0A++++%3Cid%3Ehttp%3A%2F%2Fexample.com%2Fa01-simple.html%23foo%3C% 2Fid%3E%0A++++%3Clink+rel%3D%22alternate%22+href%3D%22http%3A%2F% 2Fexample.com%2Fa01-simple.html%23foo%22+type%3D%22text%2Fhtml%22%2F% 3E%0A++++%3Cupdated%3E2007-05-25T11%3A49%3A58-07%3A00%3C%2Fupdated%3E% 0A++++%3Cauthor%3E%0A++++++%3Cname%3ERyan+King%3C%2Fname%3E%0A++++%3C% 2Fauthor%3E%0A++%3C%2Fentry%3E%0A%3C%2Ffeed%3E%0A&manual=1&output=soap12 Here's the http response I'm receieving: <?xml version="1.0"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <soap:Fault> <faultcode>exceptions.AttributeError</faultcode> <faultstring>'NoneType' object has no attribute 'split'</faultstring> <detail> <traceback xmlns="http://www.python.org/doc/current/lib/module- traceback.html"> Traceback (most recent call last): File "/usr/local/feedvalidator/check.cgi", line 174, in checker_app params = feedvalidator.validateString(rawdata, firstOccurrenceOnly=1) File "/home/ot/feedvalidator/src/feedvalidator/ __init__.py", line 153, in validateString File "/home/ot/feedvalidator/src/feedvalidator/ __init__.py", line 92, in _validate File "xml/sax/expatreader.py", line 107, in parse File "xml/sax/xmlreader.py", line 123, in parse File "xml/sax/expatreader.py", line 207, in feed File "xml/sax/expatreader.py", line 348, in end_element_ns File "/home/ot/feedvalidator/src/feedvalidator/base.py", line 217, in endElementNS File "/home/ot/feedvalidator/src/feedvalidator/base.py", line 443, in endElementNS File "/home/ot/feedvalidator/src/feedvalidator/link.py", line 78, in validate File "/home/ot/feedvalidator/src/feedvalidator/ validators.py", line 491, in validate AttributeError: 'NoneType' object has no attribute 'split' </traceback> </detail> </soap:Fault> </soap:Body> </soap:Envelope> >> Other feedback: >> >> * http://validator.w3.org/feed/docs/ references "Atom 1.1". AFAIK, >> there is no such thing. There's Atom 1.0 (aka Atom Syndication) >> and there's draft 11 of the Atom Publishing Protocol, but those >> are different things. > > Correct. Will fix that, thank you. > -ryan
Received on Thursday, 14 June 2007 17:24:01 UTC