search for: queryextension

Displaying 5 results from an estimated 5 matches for "queryextension".

2006 Jan 14
1
BUG: HTTP body content get parsed in PUT call
...sing curl -T test-file.txt ''http://localhost:3000/foobar/put_action?key1=value1'' From action_controller/cgi_ext/raw_post_data_fix.rb, the PUT method is handled the same way as POST, which would have the content body parsed for params. So, I made a patch by redefining CGI::QueryExtension#read_query_params Note that I have to put the body content into env_table[''RAW_PUT_DATA''] instead of env_table[''RAW_POST_DATA'']. The latter will have the same problem. class CGI #:nodoc: module QueryExtension private def setup_raw_put_d...
2006 Jul 06
6
Problem with gettext and functional tests
.... I keep getting the error message: NoMethodError: undefined method `cgi'' for #<ActionController::TestRequest:0xb77f7f88>. All right, TestRequest doesn''t have a cgi method. Therefore I just included this into test_helper.rb: ActionController::TestRequest.send(:include, CGI::QueryExtension). Now the error message changes to: NameError: undefined local variable or method `env_table'' for #<ActionController::TestRequest:0xb7785848>. Great, but then there isn''t a module left (the cgi class is the only construct, which implements it), which I could use to include...
2005 Dec 15
11
CGI Module in Rails
I''m trying to use the CGI module to generate the html in a view but am having trouble. My controller looks like: class MyTestController < ApplicationController def cgitest require ''cgi'' @cgi=CGI.new("html3") end end My cgitest.rhtml view document simply has: <%= @cgi.out{@cgi.html{@cgi.head{}}} %> Loading MyTest/cgitest, Rails tells me that
2006 Oct 25
14
[SEC] Mongrel Temporary Fix For cgi.rb 99% CPU DoS Attack
This is important so please read this message very carefully. There is a DoS for Ruby''s cgi.rb that is easily exploitable. The attack involves sending a malformed multipart MIME body in an HTTP request. The full explanation of the attack as well as how to fix it RIGHT NOW is given below. Most of the work was done by Jeremy Kemper and Jamis Buck. They did all the work of building the
2007 Oct 15
9
POST with huge HTTP body
Hi, I found the following page describing how to stream data from the server to the client: http://api.rubyonrails.com/classes/ActionController/Streaming.html I want to do the opposite, streaming data from the client to the server, letting the controller saving the data while it''s being received. In particular, I want to upload large files to the RailsDav