Page MenuHomePhabricator

Recent Changes and other Atom feed IDs should remain the same between loads
Closed, ResolvedPublic

Description

Author: myk

Description:
Feed.php generates a unique ID every time a user loads the Recent Changes feed.
According to lines 256-257 of that file, this is because "Atom 1.0 requires a
unique, opaque IRI as a unique indentifier [sic] for every feed we create." But
"feeds" in Atom aren't the documents generated in response to a user request,
they are "lists of related information," and an "Atom Feed Document" is merely
"a representation of an Atom feed," it isn't the feed itself.

Moreover, the "atom:id" element description states that "When an Atom Document
is relocated, migrated, syndicated, republished, exported or imported, the
content of its atom:id element MUST NOT change," and IDs on blogger.com, whose
programmers had a major role in the development of the Atom spec, don't change
when a user reloads them or even when a new entry gets published to them.

Feed IDs should remain the same between feed loads in MediaWiki too.


Version: 1.6.x
Severity: normal

Details

Reference
bz3999

Event Timeline

bzimport raised the priority of this task from to Normal.
bzimport set Reference to bz3999.
bzimport added a subscriber: Unknown Object (MLST).

You should talk to the standards committee to have the document corrected,
then.

myk wrote:

You should talk to the standards committee to have the document corrected,
then.

Perhaps I was unclear before, but when I said that feeds are "lists of related
information" I was quoting from the spec:

http://atompub.org/2005/08/17/draft-ietf-atompub-format-11.html#rfc.section.1

And when I said that an "Atom Feed Document" is merely "a representation of an
Atom feed" rather than the feed itself, I was also quoting from the spec:

http://atompub.org/2005/08/17/draft-ietf-atompub-format-11.html#rfc.section.2

Finally, when I quoted the numerous conditions (in particular republication)
under which the atom:id element must not change, I was quoting from the spec:

http://atompub.org/2005/08/17/draft-ietf-atompub-format-11.html#rfc.section.4.2.6

It's pretty clear that the Atom 1.0 spec that was published by the IETF
standards committee standardizing the Atom syndication format does not support
the idea that feed IDs should change every time a user loads a feed document
over the web. Rather, it defines feeds as lists of related information, says
that feed IDs must uniquely identify feeds, and requires them to stay the same
every time documents representing those feeds are loaded.

Ok, experimenting with alternate ids and stuff...

Changed to just the permalink, without the extra crap to make a unique URL like
the spec's unclear language appears to ask for.

myk wrote:

Thanks Brion, I appreciate the quick fix!