Edgewall Software

Ticket #3836 (closed defect: worksforme)

Opened 2 years ago

Last modified 9 months ago

Author value in RSS feed is not compliant with RSS 2.0 specs.

Reported by: eblot Owned by: eblot
Priority: lowest Milestone:
Component: general Version: 0.10
Severity: minor Keywords: needinfo genshi
Cc:

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

Change History

in reply to: ↑ description ; follow-up: ↓ 2   Changed 2 years ago by mgood

  • keywords needinfo added; rfc removed

Replying to eblot:

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?

AFAICT it already only includes emails, not simply names:

    if:event.author.email ?>
     <author><?cs var:event.author.email ?></author><?cs
    /if ?>

Am I missing something?

in reply to: ↑ 1   Changed 2 years ago by eblot

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.

  Changed 2 years ago by cboos

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).

  Changed 2 years ago by sid

  • keywords genshi added

  Changed 2 years ago by cboos

  • severity changed from trivial to minor
  • milestone set to 0.11

  Changed 9 months ago by cboos

  • status changed from new to closed
  • resolution set to worksforme
  • milestone 0.11.1 deleted

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...)

Add/Change #3836 (Author value in RSS feed is not compliant with RSS 2.0 specs.)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from eblot. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.