#3836 closed defect (worksforme)
Author value in RSS feed is not compliant with RSS 2.0 specs.
Reported by: | Emmanuel Blot | Owned by: | Emmanuel Blot |
---|---|---|---|
Priority: | lowest | Milestone: | |
Component: | general | Version: | 0.10 |
Severity: | minor | Keywords: | needinfo genshi |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Quoting RSS specification
<author> is an optional sub-element of <item>. It's the email address of the author of the item.
Trac fills in the author value, whatever its kind: the author name, or the email address if it exists.
Should we disable the author tag for users without an email address?
Attachments (0)
Change History (6)
follow-up: 2 comment:1 by , 18 years ago
Keywords: | needinfo added; rfc removed |
---|
comment:2 by , 18 years ago
Replying to mgood:
Am I missing something?
For timeline_rss.cs, you're right. However, for the other RSS sources, you can find:
$ grep -i '<author>' templates/* templates/log_rss.cs: if:change.author ?><author><?cs var:change.author ?></author><?cs templates/query_rss.cs: <author><?cs var:result.reporter ?></author><?cs templates/report_rss.cs: <?cs if:author ?><author><?cs var:author ?></author><?cs /if ?> templates/ticket_rss.cs: if:change.author ?><author><?cs var:change.author ?></author><?cs templates/timeline_rss.cs: <author><?cs var:event.author.email ?></author><?cs
change.author
, for example, produces an invalid feed.
comment:3 by , 18 years ago
Note also that in various places in the code, the value of change.author
will actually depend on the format used (i.e. it's often special cased for RSS).
That's a bit error prone, for sure, but I wouldn't invest too much time on that, as we can use the migration to Genshi as an opportunity to improve this (like calling the author validation code directly from the .rss templates).
comment:4 by , 18 years ago
Keywords: | genshi added |
---|
comment:5 by , 18 years ago
Milestone: | → 0.11 |
---|---|
Severity: | trivial → minor |
comment:6 by , 17 years ago
Milestone: | 0.11.1 |
---|---|
Resolution: | → worksforme |
Status: | new → closed |
I believe it works correctly for 0.11 now. If someone can identify an issue with <author>, please reopen with the relevant information (Trac server and RSS client version information, sample RSS output…)
Replying to eblot:
AFAICT it already only includes emails, not simply names:
Am I missing something?