ATOM feeds with relative links don't appear on Shared Links

Originator:carlosefonseca
Number:rdar://24377335 Date Originated:27-Jan-2016 10:48 PM
Status:Open Resolved:
Product:Safari Product Version:9.0.3 (11601.4.4)
Classification:Bug Reproducible:Always
 
I can add some ATOM feeds to the Feeds section of the Shared Links on Safari, like http://xkcd.com/atom.xml and it works fine. But I tried to add GitHub's Releases feed like https://github.com/apple/swift/releases.atom but nothing shows up.

I checked validator.w3.org and it tells me the GitHub feed is valid and the XKCD feed is not valid.

After some testing I managed to figure out what causes Safari to not display GitHub's items: the link does not have the hostname.

Simplifying the feed, this is what GitHub sends:

<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US">
  <entry>
    <link rel="alternate" type="text/html" href="/apple/swift/releases/tag/swift-2.2-SNAPSHOT-2016-01-25-a"/>
  </entry>
</feed>

I took that and added the host (http://github.com) to the link:

<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US">
  <entry>
    <link rel="alternate" type="text/html" href="http://github.com/apple/swift/releases/tag/swift-2.2-SNAPSHOT-2016-01-25-a"/>
  </entry>
</feed>

And the items appeared on Shared Links.

Found some references:
- https://validator.w3.org/feed/docs/atom.html#aboutThisDocument talks about the use of xml:base but Safari's Shared Links didn't care when I added that the the feed element and didn't display them.
- https://www.w3.org/TR/xmlbase/#syntax more about xml:base



Steps to reproduce
Open http://xkcd.com/atom.xml on Safari and click the Add button to add to Shared Links.
Open https://github.com/apple/swift/releases.atom and click the Add button to add to Shared Links.



Expected Results
Both xkcd and github items appear on Shared Links section.



Actual Results
xkcd items appear on Shared Links section. GitHub items do not appear on Shared Links section 



Safari Version/Build & Platform (incl. Version/Build)*
OSX 10.11.3 (15D21)
Safari Version 9.0.3 (11601.4.4)

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!