Project

General

Profile

Actions

Defect #44335

closed

PDF preview of .ai attachments triggers an automatic download

Added by Katsuya HIDAKA 23 days ago. Updated 12 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Attachments
Target version:
Resolution:
Fixed
Affected version:

Description

When an Adobe Illustrator (.ai) file is attached to an issue, opening the attachment details immediately starts a download. Clicking “Open in full view” also starts a download.

The likely cause is the filename-based PDF preview detection:

  • Attachment#is_pdf? determines the file type from the filename using Redmine::MimeType.of.
  • MiniMime maps the .ai extension to application/pdf, so .ai attachments are rendered using the PDF preview.

Files


Related issues

Related to Redmine - Feature #44385: Replace MiniMime with Marcel in Redmine::MimeType for consistent MIME type lookupClosedGo MAEDAActions
Actions

Also available in: Atom PDF