Opened 16 years ago
Last modified 14 years ago
#7294 new defect
Escaped RSS Link
Reported by: | 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 , 16 years ago
comment:2 by , 16 years ago
Milestone: | → 2.0 |
---|---|
Owner: | 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:4 by , 14 years ago
Cc: | added |
---|
I fixed this temporarily by modifying report.rss:
From:
To:
I had to change the colon, because the format to go to comments is
ticket/123#comment:7