Edgewall Software
Modify

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

t3899-firefox_feeds-r7529.diff (1.4 KB) - added by osimons 3 years ago.
Patch to make ticket + custom query feeds work in Firefox (not download).

Download all attachments as: .zip

Change History

comment:1 in reply to: ↑ description Changed 5 years ago by Leif Suonvieri <leif.s@…>

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

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

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...

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from osimons. Next status will be 'closed'
Author


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

 
Note: See TracTickets for help on using tickets.