https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292009-09-23T14:24:42ZRedmineRedmine - Defect #3911: Uploading attachment of a document fails with JRubyhttps://www.redmine.org/issues/3911?journal_id=111062009-09-23T14:24:42ZBabar O'Cap
<ul><li><strong>File</strong> <a href="/attachments/2578">uploading_attachment_file_with_jruby.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/2578/uploading_attachment_file_with_jruby.patch">uploading_attachment_file_with_jruby.patch</a> added</li></ul><p>Here a patch, tested successfully with JRuby 1.3.1 and Ruby 1.8.6 (MRI)</p> Redmine - Defect #3911: Uploading attachment of a document fails with JRubyhttps://www.redmine.org/issues/3911?journal_id=111382009-09-25T13:35:47ZBabar O'Cap
<ul><li><strong>File</strong> <a href="/attachments/2586">uploading_attachment_file_with_jruby_v2.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/2586/uploading_attachment_file_with_jruby_v2.patch">uploading_attachment_file_with_jruby_v2.patch</a> added</li></ul><p>Last patch raised errors when no attachment was given.</p> Redmine - Defect #3911: Uploading attachment of a document fails with JRubyhttps://www.redmine.org/issues/3911?journal_id=112342009-10-02T20:20:32ZYves Schubert
<ul></ul><p>Sorry, I'm very new to Ruby.</p>
<p>How can I apply that patch? I can find the files, but they do not seem to match the files, given in the patch.</p>
<p>Thanks for your help.</p>
<p>Scyv</p> Redmine - Defect #3911: Uploading attachment of a document fails with JRubyhttps://www.redmine.org/issues/3911?journal_id=112632009-10-05T08:12:02ZBabar O'Cap
<ul></ul><p><a href="http://drupal.org/patch/apply" class="external">Here a tutorial</a></p> Redmine - Defect #3911: Uploading attachment of a document fails with JRubyhttps://www.redmine.org/issues/3911?journal_id=113502009-10-10T13:20:17ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>It seems to be a JRuby issue.</p>
<p>Using ruby 1.8.7:</p>
<pre>
irb(main):001:0> require 'tempfile'
irb(main):002:0> t = Tempfile.new("temp")
irb(main):003:0> t << "foo"
irb(main):004:0> t.size
=> 3
</pre>
<p>Using JRuby 1.3.1 (latest stable):</p>
<pre>
irb(main):001:0> require 'tempfile'
irb(main):002:0> t = Tempfile.new("temp")
irb(main):003:0> t << "foo"
irb(main):004:0> t.size
=> 0
</pre> Redmine - Defect #3911: Uploading attachment of a document fails with JRubyhttps://www.redmine.org/issues/3911?journal_id=119702009-11-11T18:44:27ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Resolution</strong> set to <i>Wont fix</i></li></ul> Redmine - Defect #3911: Uploading attachment of a document fails with JRubyhttps://www.redmine.org/issues/3911?journal_id=124032009-11-24T18:23:25ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>Now works with JRuby 1.4.0.</p> Redmine - Defect #3911: Uploading attachment of a document fails with JRubyhttps://www.redmine.org/issues/3911?journal_id=332512011-10-25T11:07:48ZRolland Sawyers
<ul></ul><p>SPAM</p>