Defect #3911
closedUploading attachment of a document fails with JRuby
Description
If the file is above 25 Kb, the attachment isn't create.
I think that this bug is due to Rails who uses ActionController::UploadedStringIO for uploading files with little size and ActionController::UploadedTempfile for bigger files (
read this article for more informations).
This bug appears on Windows XP SP2 and 2003 Server with JRuby 1.3.1 but not with Ruby 1.8.6 (MRI).
I didn't test on Linux and with Redmine 0.8 branch.
Files
Updated by Babar O'Cap about 17 years ago
Here a patch, tested successfully with JRuby 1.3.1 and Ruby 1.8.6 (MRI)
Updated by Babar O'Cap about 17 years ago
- File uploading_attachment_file_with_jruby_v2.patch uploading_attachment_file_with_jruby_v2.patch added
Last patch raised errors when no attachment was given.
Updated by Yves Schubert about 17 years ago
Sorry, I'm very new to Ruby.
How can I apply that patch? I can find the files, but they do not seem to match the files, given in the patch.
Thanks for your help.
Scyv
Updated by Babar O'Cap about 17 years ago
Updated by Jean-Philippe Lang about 17 years ago
Updated by Jean-Philippe Lang about 17 years ago
- Status changed from New to Closed
- Resolution set to Wont fix
Updated by Jean-Philippe Lang about 17 years ago
Now works with JRuby 1.4.0.
Updated by Rolland Sawyers about 15 years ago
SPAM