Edgewall Software
Modify

Opened 16 years ago

Closed 15 years ago

#8108 closed task (fixed)

mimetypes wrong on t.e.o.

Reported by: jhammel@… Owned by: Jonas Borgström
Priority: normal Milestone: not applicable
Component: project Version: none
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

trying to download a text file from the source browser, the option is given to download in plain text. For example:

http://trac.edgewall.org/browser/trunk/contrib/workflow/trivial-workflow.ini?format=txt

The HTTP response is:

HTTP/1.x 200 OK
Content-Type: text/plain
Content-Length: 298
Last-Modified: Thu, 13 Dec 2007 09:14:14 GMT
content-disposition: attachment
Date: Thu, 05 Mar 2009 16:20:13 GMT
Server: lighttpd/1.4.19

So I am forced to DL the text file.

Attachments (0)

Change History (2)

comment:1 by Christian Boos, 16 years ago

Component: generalproject
Milestone: not applicable
Owner: set to Jonas Borgström
Type: defecttask

This is not a bug, but a feature, see TracIni#browser-section, render_unsafe_content.

Though this is more needed on Trac-hacks than here. I think we can set it to true, but that's up to Jonas.

comment:2 by Christian Boos, 15 years ago

Resolution: fixed
Status: newclosed

I enabled [browser] render_unsafe_content, and we get now:

HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 298
Last-Modified: Thu, 13 Dec 2007 09:14:14 GMT
Set-Cookie: trac_session=2610750798414f9c7b0f50ac; expires=Thu, 27-May-2010 08:46:18 GMT; Path=/
Date: Fri, 26 Feb 2010 08:46:18 GMT
Server: lighttpd/1.4.19

However, depending on the browser, the file can still be downloaded instead of shown as plain text (e.g. IE8 and FF show it, Chrome not).

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.