On 3/15/2010 8:36 PM, Ka-Ping Yee wrote:
> Hi,
>
> Is it true that feed publishers can publish entries with any URIs as the
> <atom:id>s for the feeds and entries, and PubSubHubbub will accept them? If
> so, then when PubSubHubbub sends me (a subscriber) a feed full of updated
> entries, is there any way for me to tell for sure which entries came from
> which feeds? It seems that feed publishers can spoof each other, unless I
> use a different callback URL for each individual subscription. Am I missing
> something?
Ideally, you /do/ actually use a different callback for each feed.
Whether it differs in the domain, path, or query string is up to you.
In non-aggregated content delivery, there's actually nothing presented by
the hub which can fully identify the feed. (This has been something that
always bothered me about using the same callback for multiple feeds.) This is
why best practice is to use different callbacks, because you can identify the
feed from the callback information.
In aggregated delivery, the atom:source element will identify which feed
the content came from, but only if the hub actually pushes an aggregated
content package. If it's only delivering a single feed (even if multiple
feeds use the same callback), there's nothing in the spec which mandates that
hubs use atom:source.
Aggregated delivery is actually pending review, and could be removed in
spec v0.4 or later.
--
Jay Rossiter | Software Engineer/System Administrator
Pioneering RSS Advertising Solutions
[email protected] <mailto:[email protected]> | Phone: 503.896.6187 |
Fax: 503.235.2216
Website: www.pheedo.com <http://www.pheedo.com/> | RSS:
www.pheedo.info/index.xml <http://www.pheedo.info/index.xml>