Project

General

Profile

Actions

Defect #19467

closed

Downloading attachments will be wrong if the file names contain more than two chinese characters

Added by micro bead over 9 years ago. Updated over 9 years ago.

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

0%

Estimated time:
Resolution:
Duplicate
Affected version:

Description

If the file names contain more than two chinese characters, downloading attachments will be wrong, and http 500 error will be occured.
Would anybody help me?
thx


Files

redmine2.jpg (34.7 KB) redmine2.jpg micro bead, 2015-03-24 12:44
redmine.jpg (28.2 KB) redmine.jpg micro bead, 2015-03-24 12:44

Related issues

Is duplicate of Redmine - Defect #19374: MinGW thin and puma: Internal server error occoures when attachment file name contains non ASCIIClosed

Actions
Actions #1

Updated by Toshi MARUYAMA over 9 years ago

  • Status changed from New to Closed
  • Resolution set to Invalid

Duplicate of #19374.

Actions #2

Updated by Toshi MARUYAMA over 9 years ago

  • Is duplicate of Defect #19374: MinGW thin and puma: Internal server error occoures when attachment file name contains non ASCII added
Actions #3

Updated by micro bead over 9 years ago

  • Status changed from Closed to Reopened

two chinese characters can work,but more than two ones will be wrong.

Actions #4

Updated by micro bead over 9 years ago

have solved the problem
open the following file and add some codes
D:\Bitnami\redmine-3.0.0-0\apps\redmine\htdocs\vendor\bundle\ruby\2.0.0\gems\actionpack-4.2.0\lib\action_dispatch\middleware
if match = paths.detect { |p|
path = File.join(test test, p)
begin
File.file?(path) && File.readable?(path)
rescue SystemCallError
false
rescue EncodingError
false
end
}

Actions #5

Updated by Toshi MARUYAMA over 9 years ago

  • Status changed from Reopened to Closed
Actions #6

Updated by Toshi MARUYAMA over 9 years ago

  • Resolution changed from Invalid to Duplicate
Actions #7

Updated by Toshi MARUYAMA over 9 years ago

Actions

Also available in: Atom PDF