Project

General

Profile

Actions

Feature #1029

closed

Special handling for .diff/.patch attachments

Added by Rocco Stanzione about 16 years ago. Updated almost 16 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
UI
Target version:
Start date:
2008-04-09
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

I suppose it's your webserver's mime type config, but if I click on a diff attached to an issue, the browser thinks it's a binary file and wants to download it. Even better than fixing that, I think, would be to treat it specially (like images) and view it in something like the SCM diff viewer.


Related issues

Related to Redmine - Feature #1403: Unified Diff download featureClosed2008-06-07

Actions
Actions #1

Updated by Rocco Stanzione about 16 years ago

One alternative to special treatment of *.diff and *.patch... what Launchpad does is give you a checkbox to say the attachment is a patch. This could also trigger an indicator that someone has attached a resolution to an issue, which could be of use to developers.

Actions #2

Updated by Jean-Philippe Lang about 16 years ago

I suppose it's your webserver's mime type config

Actually it's not my webserver, download is forced unless the attachment is an image:
source:/trunk/app/controllers/attachments_controller.rb#L26

Actions #3

Updated by Jean-Philippe Lang almost 16 years ago

  • Status changed from New to Closed
  • Target version set to 0.8
  • Resolution set to Fixed

Diff viewer added in r1516.
Rocco, the simpliest way to tell that an issue is resolved is to mark it as 'Resolved' :-)

Actions

Also available in: Atom PDF