search for: raw_post_data_fix

Displaying 16 results from an estimated 16 matches for "raw_post_data_fix".

2007 Aug 21
2
ActionPack raw_post_data_fix.rb#read_body bug with AMF data.
Hey Everyone, I just found a slight problem with the "read_body" method in raw_post_data_fix.rb. This line: # Fix for Safari Ajax postings that always append \000 content.chop! if content[-1] == 0 This causes problems with Flash AMF binary format. As AMF always appends a \000 to the stream as well. I''m the developer over at RubyAMF and have been running into problems with AMF da...
2006 Apr 14
1
rake test errors
...ms/1.8/gems/actionpack-1.12.1/lib/action_controller/ request.rb:169: warning: method redefined; discarding old relative_url_root /usr/lib/ruby/1.8/cgi/session/pstore.rb:17: warning: method redefined; discarding old []= /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/ cgi_ext/raw_post_data_fix.rb:57: warning: ambiguous first argument; put parentheses or even spaces /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/ cgi_ext/raw_post_data_fix.rb:8: warning: method redefined; discarding old initialize_query /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_cont...
2006 Sep 30
0
ActionPack CGI and Ruby 1.8.5
..._test Started ..............................E.....E..... Finished in 0.042332 seconds. 1) Error: test_binary_file(MultipartCGITest): EOFError: bad boundary end of body part /usr/local/lib/ruby/1.8/cgi.rb:1067:in `read_multipart'' ./test/controller/../../lib/action_controller/cgi_ext/raw_post_data_fix.rb:38:in `initialize_query'' /usr/local/lib/ruby/1.8/cgi.rb:2273:in `initialize'' test/controller/cgi_test.rb:358:in `new'' test/controller/cgi_test.rb:358:in `process'' test/controller/cgi_test.rb:355:in `open'' test/controller/cgi_test.r...
2006 Jun 02
0
Warning messages after upgraded from rails 1.0 to 1.1
...y/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/request.rb:169: warning: method redefined; discarding old relative_url_root /usr/lib/ruby/1.8/cgi/session/pstore.rb:17: warning: method redefined; discarding old []= /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/cgi_ext/raw_post_data_fix.rb:57: warning: ambiguous first argument; put parentheses or even spaces /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/cgi_ext/raw_post_data_fix.rb:8: warning: method redefined; discarding old initialize_query /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controll...
2006 Nov 04
0
rake db:migrate is semi-broken
.../gems/actionpack-1.12.5/lib/action_controller/request.rb:171: warning: method redefined; discarding old relative_url_root /usr/local/lib/ruby/1.8/cgi/session/pstore.rb:17: warning: method redefined; discarding old []= /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/cgi_ext/raw_post_data_fix.rb:57: warning: ambiguous first argument; put parentheses or even spaces /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/cgi_ext/raw_post_data_fix.rb:8: warning: method redefined; discarding old initialize_query /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/actio...
2006 Jan 14
1
BUG: HTTP body content get parsed in PUT call
...d via PUT.\n"=>""} The content of the PUT-call "Hello, I am a test upload via PUT.\n" get parsed as a param key. I made the PUT call using 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['&...
2006 Sep 22
3
Mongrel spinning on read_multipart
...rror calling Dispatcher.dispatch #<Mongrel::TimeoutError: Timed out thread.> /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:600:in `loop'' /usr/lib/ruby/1.8/cgi.rb:984:in `read_multipart'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/cgi_ext/raw_post_data_fix.rb:20:in `initialize_query'' /usr/lib/ruby/1.8/cgi.rb:2270:in `initialize'' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel/cgi.rb:47:in `initialize'' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel/rails.rb:67:in `process'' /usr/lib/ruby/gems/1.8/g...
2006 Jan 10
1
File upload via SSL not possible
We use an apache server (version 2.0.54) with mod_ssl and the latest rails version on a Gentoo Linux OS. We tried to run our application in both, a virtual host using HTTP and another using HTTPS with identical server configurations. With HTTP, we did not have any problem, but HTTPS did not allow us to upload files in rails into a database. The log file displays a fcgi timeout and the HTTP
2008 Apr 07
0
Crash uploading file on HTTPS/SSL rails project
...og/fastcgi.crash.log i found the followin error message: [07/Apr/2008:10:12:39 :: 7218] Dispatcher failed to catch: bad content body (EOFError) /usr/lib/ruby/1.8/cgi.rb:982:in `read_multipart'' /var/www/project/public/../config/../vendor/rails/actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb:38:in `initialize_query'' /usr/lib/ruby/1.8/cgi.rb:2271:in `initialize'' (eval):16:in `initialize'' /usr/lib/ruby/1.8/fcgi.rb:600:in `each_cgi'' /usr/lib/ruby/1.8/fcgi.rb:597:in `each_cgi'' /var/www/project/public/../config/../vendor/rails/r...
2006 Mar 14
5
Apache2 + FastCGI + SSL: File upload fails with HTTPS
...I try to upload a file with the site running in HTTPS, cgi.rb throws an EOFError: [13/Mar/2006:23:05:48 :: 22982] Dispatcher failed to catch: bad content body (EOFError) /usr/lib/ruby/1.8/cgi.rb:981:in `read_multipart? /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/cgi_ext/raw_post_data_fix.rb:20:in `initialize_query? /usr/lib/ruby/1.8/cgi.rb:2270:in `initialize? (eval):16:in `initialize? /usr/lib/ruby/1.8/fcgi.rb:600:in `each_cgi? /usr/lib/ruby/1.8/fcgi.rb:597:in `each_cgi? /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:52:in `process!? /usr/lib/ruby/gems/1.8/gems/...
2006 Nov 19
3
Binary PUT requests are failing
Does anyone know why binary PUTs are causing a 500 error in Rails? Non binary PUTs are working fine. I''m trying to make a WebDAV server. I''ve tried using both mongrel and webrick. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2006 May 17
3
Rails "Application Error" with apache and mod_fcgid
...' at /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:150 - no such file to load -- Win32API /usr/lib/ruby/1.8/cgi/session/pstore.rb:17: warning: method redefined; discarding old []= /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/cgi_ext/raw_post_data_fix.rb:57: warning: ambiguous first argument; put parentheses or even spaces /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/cgi_ext/raw_post_data_fix.rb:8: warning: method redefined; discarding old initialize_query Exception `DRb::DRbServerNotFound'' at /usr/lib/ruby/1.8/...
2006 May 24
0
Mongrel errors on file upload
...pport/dependencies.rb:147:in `require'' C:/InstantRails-1.3/ruby/lib/ruby/1.8/cgi.rb:987:in `read_multipart'' C:/InstantRails-1.3/ruby/lib/ruby/1.8/cgi.rb:984:in `read_multipart'' C:/InstantRails-1.3/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/cgi_ext/raw_post_data_fix.rb:20:in `initialize_query'' C:/InstantRails-1.3/ruby/lib/ruby/1.8/cgi.rb:2270:in `initialize'' C:/InstantRails-1.3/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.11-mswin32/lib/mongrel/cgi.rb:41:in `initialize'' C:/InstantRails-1.3/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.11-mswin3...
2006 Jul 20
6
Ruby on Rails & FastCGI 500 Error
I''m getting an error 500 and I''m at my wits end as to what could be causing it. I''m sure the path to the ruby executable is correct so what else could be causing it? -- Posted via http://www.ruby-forum.com/.
2007 Aug 19
3
fastcgi issue on production
...ch: You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occurred while evaluating nil.split (NoMethodError) /usr/lib/ruby/1.8/cgi.rb:897:in `parse'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/ cgi_ext/raw_post_data_fix.rb:45:in `initialize_query'' /usr/lib/ruby/1.8/cgi.rb:2274:in `initialize'' /usr/lib/ruby/1.8/fcgi.rb:594:in `new'' /usr/lib/ruby/1.8/fcgi.rb:594:in `each_cgi'' /usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:141:in `process_each_request!''...
2007 Aug 21
7
rails truncating raw_post_data?
Has anyone ever run into any problems with rails truncating raw_post_data. My situation is this: I''m the developer for RubyAMF (wiki.rubyamf.org). Which is a flash remoting application server. With the rails plugin, it allows flash to talk to a controller and return AMF data.. So long story short, the flash player makes a request to a rails controller sending AMF binary format in the