Project

General

Profile

Actions

Defect #27076

closed

Cannot open attachements with special characters in filename

Added by Markus Schenk about 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Attachments
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Duplicate
Affected version:

Description

When an attachment is added to a new entry with a special character in the filename, it is not possible to open the attachment after saving (404 - document not found).
After some investigating I found that the attachment in the database uses two columns to determine the matching between displayname and actual file on disk - 'filename' and 'disk_filename'.
An attachment with a special character in the filename (eg. täst.txt) is saved in the database like that: 'filename' => 'täst.txt', 'disk_filename' => '170926091327_3de45324.....txt'.
In redmine, the attachment name is shown as täst.txt but the underlying href link points to t%C3%C4st.txt and on open leads - as mentioned before - to an error 404.

Now, when I update the corresponding database entry to 'filename' => 't%C3%C4st.txt' the link then works. Unfortunately redmine then displays the name as 't%C3%A4st.txt'.


Related issues

Is duplicate of Redmine - Defect #26337: Can't download attachments with russian letters in name (from issue)Closed

Actions
Actions

Also available in: Atom PDF