Edgewall Software
Modify

Opened 16 years ago

Last modified 13 years ago

#7294 new defect

Escaped RSS Link

Reported by: raziel.jatier@… Owned by:
Priority: normal Milestone: unscheduled
Component: report system Version: 0.11b1
Severity: normal Keywords:
Cc: Thijs Triemstra Branch:
Release Notes:
API Changes:
Internal Changes:

Description

In .10, I created a report that would have 1 line every time someone entered a new comment or made a change to the ticket. In the where clause, I restricted it to ticket that were relevant to you because you were the owner, reporter, or the cc. I accomplished that with this line:

id||'#'||oldvalue AS ticket,

I would then subscribe to the rss feed and be able to get comment updates on tickets relevant to me. As of .11 the way the the <link> gets created in the rss feed and the report escapes the # so that I get the error:

No handler matched request to /ticket/1092#2

If you look in the url it appears as:

https://trac.usme-qcs.org/sis/ticket/1092%232

It's obviously escaping the # with %23. Is there any way that I can either control the way that the links are created in the report and rss feed, or a way to disable escaping the # symbol?

Attachments (0)

Change History (4)

comment:1 by raziel.jatier@…, 16 years ago

I fixed this temporarily by modifying report.rss:

From:

<link py:if="row.id">${abs_url_of(row.resource)}</link>

To:

<link py:if="row.id">${abs_url_of(row.resource).replace('%23', '#').replace('%3A', ':')}</link>

I had to change the colon, because the format to go to comments is ticket/123#comment:7

comment:2 by Christian Boos, 16 years ago

Milestone: 2.0
Owner: Matthew Good removed

Currently this can't be easily done without tweaking the templates.

One idea would be to offer more flexibility in TracReports#Automaticallyformattedcolumns, so that more kinds of filtering/formatting could be done, and not necessarily based on the field name. Setting 2.0 for that.

Btw, this just made me think of a possible hack if you don't need to use the description field:

'[ticket:'||id||'#comment:'||oldvalue||' change '||oldvalue||]' AS description,

Of course, you'd want to do some processing on oldvalue in order to keep only the change number, and skip the replyto. information.

comment:3 by Christian Boos, 14 years ago

Milestone: 2.0unscheduled

Milestone 2.0 deleted

comment:4 by Thijs Triemstra, 13 years ago

Cc: Thijs Triemstra added

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.