PUBLISHED and UPDATED in Atom feeds

ahoeben - June 25, 2006 - 14:27
Project:Drupal
Version:7.x-dev
Component:aggregator.module
Category:bug report
Priority:minor
Assigned:Unassigned
Status:closed
Description

I am encountering PUBLISHED and UPDATED attributes in some Atom feeds, instead of CREATED and MODIFIED.
Attached patch adds support for these variations.

AttachmentSizeStatusTest resultOperations
aggregator-atomdates.patch796 bytesIgnoredNoneNone

#1

Dries - June 25, 2006 - 15:25

I can't find that in the Atom 0.3 specification:
http://www.mnot.net/drafts/draft-nottingham-atom-format-02.html#rfc.sect...

However, in this version of the Atom specification, I can:
http://www.atompub.org/2005/08/17/draft-ietf-atompub-format-11.html

More information at:
http://www.intertwingly.net/wiki/pie/PaceDateModified

It looks like both dates can be present. What happens when that is the case? The date handling isn't up to sniff; maybe we should do $date = max($date_issued, $date_created, $date_modified, $date_updated, ...) ?

#2

Dries - June 25, 2006 - 15:27
Status:needs review» needs work

I committed your patch (it's an improvement) but I'm leaving this as 'code needs work' so we can investigate this some more, and come up with a more complete solution.

#3

ahoeben - June 26, 2006 - 06:38

To be honest, I did not look at the atom spec. I was just responding to what aggregator was encountering 'in the wild'.

In the rationale on http://www.intertwingly.net/wiki/pie/PaceDateModified , it is somewhat implied that if atom:updated changes, atom:modified must certainly have changed as well. So atom:modified should always have the most current date.

The current patch first looks for atom:modified, and ignores atom:updated if atom:modified is found. Having said that, aggregator currently first looks for an issued/created date, and ignores updates. For node we have both a 'created' and 'changed' timestamp, but for aggregator we don't. But that would be a bigger patch/issue at the moment

#4

ricabrantes - February 21, 2008 - 17:26
Version:x.y.z» 7.x-dev

This patch is applies?? Feature requests go to the current development version...

#5

mustafau - August 15, 2008 - 10:52
Status:needs work» fixed

This is fixed in DRUPAL-5.

#6

Anonymous (not verified) - August 29, 2008 - 10:52
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.