#351 √ resolved
Paul Boone

[patch] Multipart formdata throws NoMethodError when deployed to Tomcat

Reported by Paul Boone | May 31st, 2008 @ 06:43 PM | in 0.9.4

When deploying a merb application via JRuby / Warble / JRuby-Rack to Tomcat, any form submitted with enctype = "multipart/form-data" causes merb to throw a 'method does not exist error'.

In this environment, rack_env['rack.input'] is an IO object, not a StringIO object, so the call on line 103 of @body.size > 0 throws a method missing error. This check doesn't appear to be necessary, as even without a file being uploaded, @body contains at least the multipart form-data boundary.

Additionally, in this environment 'tempfile' is not automatically included so needs to be required.

This is my first git patch, so let me know if there are problems. Thanks!

Comments and changes to this ticket

  • Michael Klishin (antares)

    Michael Klishin (antares) June 2nd, 2008 @ 09:39 AM

    • → Milestone changed from “” to “0.9.4”
    • → State changed from “new” to “resolved”
    • → Assigned user changed from “” to “Michael Klishin (antares)”

    I think this has been reported before for Ebb. Thank you, applied and pushed into wycats' tree.

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket