MantisBT - CDash
View Issue Details
0011711CDash(No Category)public2011-01-17 05:052012-01-17 09:50
Michael Wild 
Julien Jomier 
normalmajoralways
resolvedfixed 
1.8 
2.0 
0011711: cdash/createRSS.php creates invalid RSS output
The RSS feed created by CDash does not validate and has several other issues.

Errors:

- The <pubDate> element requires a RFC822 formatted date
- The <dc:date> element a W3C formatted date.

Issues:

- Do not provide both, <pubDate> and <dc:date>
- A <guid> element in each <item> would allow feed readers to identify items uniquely.
- A <atom:link href="..." rel="self"> element would allow a cached feed to refer back to itself.
See e.g. the W3C validator here for an example (the CMake dashboard):

http://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Fcdash.org%2FCDash%2Frss%2FSubmissionRSSCMake.xml [^]
Since CDash requires PHP 5.2 you can use date(DATE_W3C) for the <dc:date> and date(DATE_RFC822) for the <pubDate> elements, respectively.

Also, adding a <guid> element (e.g. "$currentURI/buildSummary.php?buildid=$buildid" should fit the bill) would be nice to feed readers so they can distinguish items uniquely.

Adding the <atom:link href="..." rel="self"> element is trivial, just requires a namespace declaration. See http://validator.w3.org/feed/docs/warning/MissingAtomSelfLink.html [^]
No tags attached.
Issue History
2011-01-17 05:05Michael WildNew Issue
2011-01-17 05:16Michael WildNote Added: 0024732
2012-01-17 09:40Julien JomierAssigned To => Julien Jomier
2012-01-17 09:40Julien JomierStatusnew => assigned
2012-01-17 09:40Julien JomierProduct Version => 1.8
2012-01-17 09:50Julien JomierNote Added: 0028340
2012-01-17 09:50Julien JomierStatusassigned => resolved
2012-01-17 09:50Julien JomierFixed in Version => 2.0
2012-01-17 09:50Julien JomierResolutionopen => fixed

Notes
(0024732)
Michael Wild   
2011-01-17 05:16   
Attached patch (against current trunk) fixes the issue.
(0028340)
Julien Jomier   
2012-01-17 09:50   
Should be fixed in CDash 2.0. Thanks a lot for the clear bug report!