Project

General

Profile

Actions

Feature #33902

closed

Server-Handler for GIF

Feature #33902: Server-Handler for GIF

Added by gl aun over 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Attachments
Target version:
-
Resolution:
Wont fix

Description

All images were downloaded from the browser, not only .GIF, but also .gif, .png, etc.
A method in Redmine had to be overwritten.

I am publishing something here for the first time, please be lenient.

I also hope that the patch file I have created is correct. (attachments_controller.rb edited)


Files

inline_attachment_images.patch (511 Bytes) inline_attachment_images.patch Not a Bug, it's a Feature gl aun, 2020-08-25 11:23

Updated by Bernhard Rohloff over 6 years ago Actions #1

First of all thank you for your contribution. Every patch counts. :-)

This area of Redmine is a dark spot on my map. I have read the description but I have no clue what the issue is about, or what this patch does. Could you describe it to me on a specific use case? If i do this, than Redmine should do that.
It would also help to choose a category for the improvement. Is this patch related to issue tracking?

You also mention that the attachments_controller.rb was edited, but I cannot find it in you patch.

Updated by gl aun over 6 years ago Actions #2

Hi @Bernhard Rohloff,

guess you could say that.

In our company we did not want the images to be downloaded automatically, but rather open them in the browser.

I think I messed up something with the patch itself, the

disposition
method is overwritten with the patch.

Updated by Go MAEDA over 6 years ago Actions #3

The reason for sending images with a "Content-Disposition: attachment" is to fix a security flaw CVE-2017-15574. The change was made in r16285.

Updated by Go MAEDA about 6 years ago Actions #4

  • Category set to Attachments

Updated by Go MAEDA about 6 years ago Actions #5

  • Status changed from New to Closed
  • Resolution set to Wont fix

Go MAEDA wrote:

The reason for sending images with a "Content-Disposition: attachment" is to fix a security flaw CVE-2017-15574. The change was made in r16285.

Closing this issue.

Actions

Also available in: PDF Atom