Project

General

Profile

Actions

Defect #19467

closed

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

Defect #19467: Downloading attachments will be wrong if the file names contain more than two chinese characters

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

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
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 1 (0 open — 1 closed)

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

Updated by Toshi MARUYAMA over 11 years ago Actions #1

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

Duplicate of #19374.

Updated by Toshi MARUYAMA over 11 years ago Actions #2

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

Updated by micro bead over 11 years ago Actions #3

  • Status changed from Closed to Reopened

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

Updated by micro bead over 11 years ago Actions #4

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(@root, p)
begin
File.file?(path) && File.readable?(path)
rescue SystemCallError
false
rescue EncodingError
false
end
}

Updated by Toshi MARUYAMA over 11 years ago Actions #5

  • Status changed from Reopened to Closed

Updated by Toshi MARUYAMA over 11 years ago Actions #6

  • Resolution changed from Invalid to Duplicate

Updated by Toshi MARUYAMA over 11 years ago Actions #7

Actions

Also available in: PDF Atom