Edgewall Software
Modify

Ticket #597 (closed defect: fixed)

Opened 8 years ago

Last modified 6 years ago

Ampersand (&) in Project title breaks timeline RSS feed

Reported by: Ian Leader <ian_dot_leader_at_line_dot_co_dot_uk> Owned by: daniel
Priority: normal Milestone: 0.8
Component: timeline Version: 0.7.1
Severity: normal Keywords: RSS, escapes, reports
Cc:
Release Notes:
API Changes:

Description

If there is an ampersand in the Trac project title, it is not escaped in the RSS timeline feed, and consequently the feed is not well-formed XML.

This may well be the case in other RSS feeds, but I changed the title of our project before I thought to check.

Attachments

rss_title_esc_fix_trunc_803.diff (2.3 KB) - added by anonymous 8 years ago.

Download all attachments as: .zip

Change History

comment:1 Changed 8 years ago by daniel

  • Owner changed from jonas to daniel
  • Status changed from new to assigned

Changed 8 years ago by anonymous

comment:2 Changed 8 years ago by Ian Leader <ian_dot_leader_at_line_dot_co_dot_uk>

  • Keywords escapes, reports added; escapes removed

Have attached diff to source:/trunk/#803 to fix this ticket, and to fix the same problem in the report RSS feed.

Took the approach of adding project.name.rss value, and updating the templates, as this seemed to be the aproach taken to item-based RSS kludges in [803].

the hdf.setValue is in core.py - this seemed the most sensible place, as this problem will occur in pretty much any RSS feed, but if there is a better place, please let me know.

comment:3 Changed 8 years ago by daniel

  • Milestone set to 0.8

comment:4 Changed 8 years ago by daniel

  • Resolution set to fixed
  • Status changed from assigned to closed

Applied in [825]. Thanks for the patch, Ian! Escaping entities might be a bigger issue than just RSS, and might become apparent later.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from daniel. Next status will be 'closed'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.