matsuoka-edi / redmine-dmsf

Automatically exported from code.google.com/p/redmine-dmsf
0 stars 0 forks source link

Chinese name doesn't work #182

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.add a file with Chinese name,see fi.png
2.and it doesn't work, see f2.png
3.

What is the expected output? What do you see instead?

What version of the DMSF and Redmine are you using? On what browser and
operating
system?

Redmine 1.2.1.stable (MySQL)
DMSF  1.2.1

Please provide any additional information below.

Original issue reported on code.google.com by qren2...@gmail.com on 17 Nov 2011 at 3:47

Attachments:

GoogleCodeExporter commented 9 years ago
Can you please attach log file?

Original comment by vit.jo...@gmail.com on 17 Nov 2011 at 10:06

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Processing DmsfUploadController#upload_file (for 192.168.1.101 at 2011-11-18 
17:12:39) [POST]
  Parameters: {"name"=>"实用命令.txt", "action"=>"upload_file", "authenticity_token"=>"nxJRNVy+SS+FITH1Xqm+VzLKI8mHFMdV/DbY+/
KZtB8=", "id"=>"xiangm2", "controller"=>"dmsf_upload", 
"file"=>#<File:/tmp/RackMultipart2805-0>}
Rendering dmsf_upload/upload_file
Completed in 32ms (View: 1, DB: 4) | 200 OK 
[http://192.168.1.119/redmine/dmsf_upload/upload_file/xiangm2]

Processing DmsfUploadController#upload_files (for 192.168.1.101 at 2011-11-18 
17:12:39) [POST]
  Parameters: {"action"=>"upload_files", "authenticity_token"=>"nxJRNVy+SS+FITH1Xqm+VzLKI8mHFMdV/DbY+/KZtB8=", "uploaded"=>{"
1"=>{"original_filename"=>"实用命令.txt", 
"disk_filename"=>"111118171239_72da2b7d7b20a03ee5c47c6c1e9df908.txt", 
"content_type
"=>"text/plain"}}, "id"=>"xiangm2", "controller"=>"dmsf_upload", 
"p16eqv2g7g1mlq1jf611mqsf21ki00_count"=>"0"}

ActiveRecord::StatementInvalid (Mysql::Error: Illegal mix of collations 
(latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COE
RCIBLE) for operation '=': SELECT * FROM `dmsf_files` WHERE (dmsf_folder_id is 
NULL and project_id = 4 and name = '实用命令.t
xt' and deleted = 0)  LIMIT 1):
  vendor/plugins/redmine_dmsf/app/models/dmsf_file.rb:73:in `find_file_by_name'
  vendor/plugins/redmine_dmsf/app/models/dmsf_upload.rb:57:in `initialize'
  vendor/plugins/redmine_dmsf/app/controllers/dmsf_upload_controller.rb:44:in `new'
  vendor/plugins/redmine_dmsf/app/controllers/dmsf_upload_controller.rb:44:in `upload_files'
  vendor/plugins/redmine_dmsf/app/controllers/dmsf_upload_controller.rb:43:in `each_value'
  vendor/plugins/redmine_dmsf/app/controllers/dmsf_upload_controller.rb:43:in `upload_files'
  /usr/lib/ruby/1.8/phusion_passenger/rack/request_handler.rb:92:in `process_request'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
  /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:418:in `start_request_handler'
  /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:358:in `handle_spawn_application'
  /usr/lib/ruby/1.8/phusion_passenger/utils.rb:184:in `safe_fork'
/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:354:in 
`handle_spawn_application'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:163:in `start'
  /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:213:in `start'
  /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
  /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
  /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
  /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
  /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
  /usr/lib/phusion_passenger/passenger-spawn-server:61

Rendering /usr/local/redmine/public/500.html (500 Internal Server Error)
                                                                                                           43,1         底端

Original comment by qren2...@gmail.com on 18 Nov 2011 at 9:17