Edgewall Software
Modify

Ticket #7294 (new defect)

Opened 4 years ago

Last modified 15 months ago

Escaped RSS Link

Reported by: raziel.jatier@… Owned by:
Priority: normal Milestone: unscheduled
Component: report system Version: 0.11b1
Severity: normal Keywords:
Cc: thijstriemstra
Release Notes:
API 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

Change History

comment:1 Changed 4 years ago by raziel.jatier@…

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 Changed 4 years ago by cboos

  • Milestone set to 2.0
  • Owner mgood deleted

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 Changed 22 months ago by cboos

  • Milestone changed from 2.0 to unscheduled

Milestone 2.0 deleted

comment:4 Changed 15 months ago by thijstriemstra

  • Cc thijstriemstra added
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will be changed from (none). Next status will be 'new'
The owner will be changed from (none) to anonymous. Next status will be 'assigned'
Author


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

 
Note: See TracTickets for help on using tickets.