Ticket #3899 (closed defect: fixed)
Opened 5 years ago
Last modified 3 years ago
Live bookmarks not supported on Custom Query pages
| Reported by: | leif.s@… | Owned by: | osimons |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.11.2 |
| Component: | ticket system | Version: | 0.11.1 |
| Severity: | minor | Keywords: | |
| Cc: | matt.nathan@… | ||
| Release Notes: | |||
| API Changes: | |||
Description
On most pages Trac supports RSS feeds the way Mozilla Firefox wants them, but it seems this has been forgotten on the Custom Query page.
Attachments
Change History
comment:1 in reply to: ↑ description Changed 5 years ago by Leif Suonvieri <leif.s@…>
comment:2 Changed 5 years ago by mgood
- Resolution set to worksforme
- Status changed from new to closed
I've tested both on Firefox 2 and they are working correctly.
comment:3 Changed 3 years ago by matt.nathan@…
- Cc matt.nathan@… added
- Resolution worksforme deleted
- Status changed from closed to reopened
I get the same problem. Firefox 3 on both Linux and Mac only offers to download the xml file (query.xml) instead of showing the feed under the custom query page. I also note that it doesn't work for this tickets rss feed.
The RSS for the available reports works as desired as does the timeline.
Tested against 0.11 and this site
comment:4 Changed 3 years ago by osimons
- Component changed from report system to ticket system
- Milestone set to 0.11.2
- Owner changed from mgood to osimons
- Status changed from reopened to new
- Version changed from 0.10 to 0.11.1
You're right. Custom Query and Ticket feeds doesn't work like the others. I'll put it on my to-do.
comment:5 Changed 3 years ago by osimons
These two feeds do not work as the others as they use mimeview.api.Mimeview.send_converted() to convert and send the feed data. That method does one thing we don't want for feeds: It adds a Content-Disposition header with a constructed filename - forcing Firefox (and possibly other browsers) to see it as a download.
I've made a patch for this behaviour that if passed filename is empty, it does not add this particular header as there is no filename to add - and default filename is 'file' so it should not be empty unless explicitly requested. I don't quite see what far-reaching consequences this may have, but all other downloads seems to work as they should and all tests pass.
Patch follows.
Changed 3 years ago by osimons
- Attachment t3899-firefox_feeds-r7529.diff added
Patch to make ticket + custom query feeds work in Firefox (not download).
comment:6 Changed 3 years ago by cboos
Tested, works fine.
A detail: maybe using filename=None would be more indicative than filename='' that we don't want to pass a Content-Disposition header?
comment:7 Changed 3 years ago by osimons
- Resolution set to fixed
- Status changed from new to closed
Thanks for testing and feedback. Committed with filename=None to 0.11-stable in [7598].
comment:8 Changed 3 years ago by cboos
But see #7956, we now use None for all alternate formats...



Replying to leif.s@hem.utfors.se:
This also seems to happen on the "ticket view" page...