Craig S. Cottingham created JRUBY-6478:
------------------------------------------

             Summary: File upload as multipart/form-data fails to be parsed 
correctly when deployed as WAR
                 Key: JRUBY-6478
                 URL: https://jira.codehaus.org/browse/JRUBY-6478
             Project: JRuby
          Issue Type: Bug
          Components: Rails WAR Deployment
    Affects Versions: JRuby 1.6.6
         Environment: JRuby 1.6.6, Mac OS X 10.7.3 with OpenJDK 1.7.0 (build 
1.7.0-u4-b225-20120116, 64-bit server VM build 23.0-b09, mixed mode), Ubuntu 
11.10 (GNU/Linux 3.0.0-16-virtual i686) on Amazon EC2 with OpenJDK 1.6.0_23 
(IcedTea6 1.11pre, 6b23~pre11-0ubuntu1.11.10.1, client VM build 20.0-b11, mixed 
mode, sharing)
            Reporter: Craig S. Cottingham
            Priority: Blocker


When I upload a file via the file_field helper, the params hash in the 
controller is empty. If I'm creating a new record, the application behaves as 
if *none* of the form fields had been populated. If I'm editing an existing 
record, I get a routing error because the application doesn't see the 
"_method=put" hidden field.

Note that this only happens when the application is bundled as a WAR and 
deployed (in our case, to Apache Tomcat 7.0.25). If I run deploy the 
application through WEBrick (via "rails server"), it behaves correctly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to