Opened 17 years ago
Closed 16 years ago
#6582 closed enhancement (wontfix)
Timeline RSS doesn't include "author"
Reported by: | humberto__digi.com.br | Owned by: | Christian Boos |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | timeline | Version: | |
Severity: | normal | Keywords: | patch |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
In my setup, Trac gets usernames from Apache. As they're simple usernames (like "humberto"), the timeline_rss template can't find an e-mail and fails to include the "author" tag.
Here's how I solved it:
-
timeline_rss.cs
old new 20 20 /if ?><?cs 21 21 each:event = timeline.events ?> 22 22 <item> 23 <title><?cs var:event.title ?></title><?cs 24 if:event.author.email ?> 25 <author><?cs var:event.author.email ?></author><?cs 26 /if ?> 23 <title><?cs var:event.title ?></title> 24 <author><?cs var:event.author ?></author> 27 25 <pubDate><?cs var:event.date ?></pubDate> 28 26 <link><?cs var:event.href ?></link> 29 27 <guid isPermaLink="false"><?cs var:event.href ?>/<?cs
Attachments (2)
Change History (19)
follow-up: 3 comment:1 by , 17 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
comment:2 by , 17 years ago
Milestone: | 0.10.5 |
---|
follow-up: 4 comment:3 by , 17 years ago
Resolution: | wontfix |
---|---|
Status: | closed → reopened |
Replying to nkantrowitz:
The RSS spec says the author field must be the email address of the author. See here.
The same page you cited gives an example with a full name:
<author>lawyer@boyer.net (Lawyer Boyer)</author>
And Trac 0.11 lists users correcty even without an e-mail (using another namespace):
<dc:creator>anonymous</dc:creator>
If it works on Trac 0.11, I don't see why the fix couldn't be backported to 0.10.
follow-up: 5 comment:4 by , 17 years ago
Resolution: | → wontfix |
---|---|
Status: | reopened → closed |
Replying to humberto__digi.com.br:
If it works on Trac 0.11, I don't see why the fix couldn't be backported to 0.10.
Project policy?
We don't backport minor issues to previous releases. Moreover 0.11 is due in a couple of weeks or so.
0.10.5 will only contain security and major bug fixes - if it is ever released.
comment:5 by , 17 years ago
Replying to eblot:
Project policy?
Human resources rather… Anyone is free to step up as an active maintainer of 0.8.x, 0.9.x, 0.10.x, etc. IIRC, some Debian people where sort of maintaining 0.8.x a long time even during the 0.10dev days.
More realistically, if someone at this point wants to take over 0.10 maintenance seriously, perfect, I don't think the Trac project policy is against this. But like manu said, we want to be reasonably sure to be able to make a release 0.10.5 anytime if there's a security fix that needs to be done. So even applying simple patches like the one proposed here requires testing and taking responsibility for the change (like in: if you commit it, you have to be there to fix it when it breaks or breaks something else).
Minimizing the amount of (even trivial) changes is what we can do best to maintain our ability to provide security fix releases, given the lack of active maintainer for that branch.
comment:6 by , 17 years ago
Resolution: | wontfix |
---|---|
Status: | closed → reopened |
Type: | defect → enhancement |
Version: | 0.10.4 |
I think, this would be a nice feature for the 0.11 release..
the autor don't have to be present in the autor field (because there should be the email addy), but could be enclosed in the title..
Current titles look like "TracInstall edited", but could be better "TracInstall edited by cboos". Maybe also the new Rev should be mentioned .?
Also the Changeset could have the format as they have in the timeline, e.g. Changeset [6791] by cboos: Follow-up to r6726, need to fix the annotate links for the changeset …
follow-up: 10 comment:8 by , 17 years ago
Milestone: | → 0.11.1 |
---|
Normally the author should be in the <author> block, but only if there's an e-mail address known for this author. In case it's not there, we could put the author in the title as you suggested.
comment:9 by , 17 years ago
A fake email can also be created using the .invalid TLD
For example, I will have the email Christophe.Simonis@trac.invalid
by , 16 years ago
Attachment: | 6582-author-in-feed-item-title-r7481.patch added |
---|
Patch against 0.11-stable adding the author to feed item titles where no <author>
tag is generated
comment:10 by , 16 years ago
Replying to cboos:
Normally the author should be in the <author> block, but only if there's an e-mail address known for this author. In case it's not there, we could put the author in the title as you suggested.
The patch above does just that: it adds the author to the title when no <author>
block is present.
comment:11 by , 16 years ago
Keywords: | patch added |
---|
by , 16 years ago
Attachment: | 6582-author-in-feed-item-title-r7554.patch added |
---|
Updated patch for current 0.11-stable
follow-up: 14 comment:13 by , 16 years ago
Looks good to me, except maybe the following part:
...author=format_author(event.author)
shouldn't that be:
author=format_author(author)
comment:14 by , 16 years ago
Replying to cboos:
shouldn't that be:
author=format_author(author)
Correct, I got confused in author_or_creator()
, where the function argument author
is overridden by a py:with
.
(OT: Funny how quoting messes up {{{...}}}
blocks, I wonder if I could fix this in the wiki formatter…)
comment:15 by , 16 years ago
I'm having second thoughts after re-testing this fix: do we really want the author in the title?
- It looks really ugly in both feed readers that I have tried (Thunderbird and Akregator).
- Both readers correctly extract the author from the
<dc:creator>
tag that is used when no e-mail is available (and therefore no<author>
tag is created), so there is no need for duplicating it in the title.
I would tend towards closing this as "wontfix" at this point, as it would impose ugliness to all users. I suppose it could be done in a plugin for people who really want it, in an IRequestFilter
.
comment:16 by , 16 years ago
I'm not a big fan of changing this. All my common readers pick the author up nicely, and changing the title for each change by a user without email is not ideal either as some readers (usually email software) use the title to detect threads and highlight other known changes to the resource.
comment:17 by , 16 years ago
Milestone: | 0.11.3 |
---|---|
Resolution: | → wontfix |
Status: | reopened → closed |
Yep, that's another good reason for a "wontfix".
The RSS spec says the author field must be the email address of the author. See here.