Edgewall Software

Ticket #7294 (new defect)

Opened 6 months ago

Last modified 4 months ago

Escaped RSS Link

Reported by: raziel.jatier@… Owned by:
Priority: normal Milestone: 2.0
Component: report system Version: 0.11b1
Severity: normal Keywords:
Cc:

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

Changed 6 months 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

Changed 4 months ago by cboos

  • owner mgood deleted
  • milestone set to 2.0

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.

Add/Change #7294 (Escaped RSS Link)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change from (none). Next status will be 'new'
The owner will change from (none) to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.