|
View:
New views
1 Messages
—
Rating Filter:
Alert me
|
|
|
[jira] Created: (JRUBY-2497) Request body is empty (POST) if Tomcat RequestDumperValve is enabledRequest body is empty (POST) if Tomcat RequestDumperValve is enabled
-------------------------------------------------------------------- Key: JRUBY-2497 URL: http://jira.codehaus.org/browse/JRUBY-2497 Project: JRuby Issue Type: Bug Components: GoldSpike Affects Versions: JRuby 1.1.1 Environment: Tomcat 5.5.26, JRuby 1.1RC3 and JRuby 1.1.1, Goldspike 1.6, Rails 2.0.2 ... Also, this occurs with the Catalina that comes packaged with JBoss AS 4.2.2 Reporter: David Esposito When you have the RequestDumperValve enabled in your server.xml on Tomcat, the body of any HTTP method that takes a body (POST, etc), is empty If you do a $stdin.eof? in the constructor of cgi_process.rb, you will see that it returns true when the RequestDumperValve is enabled, and false when it's not This will raise an exception in your rails log file: /!\ FAILSAFE /!\ Wed May 07 11:05:36 -0400 2008 Status: 500 Internal Server Error undefined method `[]' for nil:NilClass C:/Temp/apache-tomcat-5.5.26/webapps/fredo/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/request.rb:470:in `clean_up_ajax_request_body!' C:/Temp/apache-tomcat-5.5.26/webapps/fredo/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/request.rb:389:in `parse_formatted_request_parameters' C:/Temp/apache-tomcat-5.5.26/webapps/fredo/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/cgi_process.rb:86:in `request_parameters' C:/Temp/apache-tomcat-5.5.26/webapps/fredo/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/request.rb:296:in `parameters' C:/Temp/apache-tomcat-5.5.26/webapps/fredo/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/request.rb:22:in `request_method' C:/Temp/apache-tomcat-5.5.26/webapps/fredo/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/request.rb:35:in `method' C:/Temp/apache-tomcat-5.5.26/webapps/fredo/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/routing.rb:1483:in `extract_request_environment' C:/Temp/apache-tomcat-5.5.26/webapps/fredo/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/routing.rb:1424:in `recognize' C:/Temp/apache-tomcat-5.5.26/webapps/fredo/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:170:in `handle_request' C:/Temp/apache-tomcat-5.5.26/webapps/fredo/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:115:in `dispatch' C:/Temp/apache-tomcat-5.5.26/webapps/fredo/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:126:in `dispatch_cgi' C:/Temp/apache-tomcat-5.5.26/webapps/fredo/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:9:in `dispatch' :1 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.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 |
| Free embeddable forum powered by Nabble | Forum Help |