Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: feed: URI assumed by Safari




On 27 Jan '06, at 10:48 AM, Jens Alfke wrote:

Anyway, something seems to be going wrong inside our Syndication code; when we receive the request we can't identify the document as RSS or Atom.

Got it! We have some preflight code in Syndication that looks at the contents of a URL and tries to determine whether it's an RSS feed, an Atom feed, or an HTML document that links to a feed. When we're told to display a URL we run it through this, so we can do the appropriate redirection if we hit something that's really a web page.

Unfortunately, this code is separate from our main parser, and it looks like in the case of this feed it's making an overly restrictive test. Specifically, it's checking that the first child of the <rss> element is a <channel> element; but in this feed there is a <viewinbrowser:info> element before the <rss>.

I'm not sure why the code is doing that; you're correct that the feed is valid, since inserting properly namespaced non-RSS elements is legal. We'll need to fix our code to not be overly restrictive. Sorry! In the meantime, you can work around the problem by removing that <viewinbrowser:info> element or moving it after the <channel> element.

I filed the bug in our database as 4424687.

Are you associated with webjay.org? Or have you notified them of this?
___________________________________________
Jens Alfke — Social Software Introvert — Apple Computer
Getting bored is not allowed


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
syndication-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/syndication-dev/email@hidden

This email sent to email@hidden

References: 
 >feed: URI assumed by Safari (From: Lucas Gonze <email@hidden>)
 >Re: feed: URI assumed by Safari (From: Jens Alfke <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.