similar to: BUG: HTTP body content get parsed in PUT call

Displaying 17 results from an estimated 17 matches similar to: "BUG: HTTP body content get parsed in PUT call"

2006 Jul 06
6
Problem with gettext and functional tests
Hi, I am using gettext to let my web application know several languages. All works fine, but since I integrated it, my functional tests don''t work any more. 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
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:
2005 Jul 14
2
SSL certificate access with Apache2/fastcgi
I''m trying to add SSL certificate-based authentication to an existing Rails application. I''m running into major problems because I can''t find a way to determine *which* certificate was used for authentication. With CGI, Apache (2.0.5x) would add environment variables to tell me about the certificate used, but they don''t seem to be available with
2006 Jan 10
9
FastCGI cannot start; Rails doesn''t work
I have a problem deploying FastCGI for use with RoR. OS: FreeBSD 5.4 Apache: 2.0.55 FastCGI: 2.4.2 ###### I compiled a new mod_fastcgi.so and copied it to /usr/lib/apache/mod_fastcgi.so ###### My httpd.conf looks like this: LoadModule fastcgi_module /usr/lib/apache/mod_fastcgi.so <IfModule mod_fastcgi.c> AddHandler fastcgi-script .fcgi </IfModule> ###### The testscript
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
2007 Jan 26
0
Problems with assert_select in integration tests
I''ve been battling with assert_select in my integration tests for several evenings now. I''m testing a multi-step form, and after submitting the first step, my assert_selects fail on the attempts to find the form on the next page. However if I print out the response object, it has the exact text of what I''m trying to match. Here is the complete integration test. The
2007 Jan 17
8
can i force a favicon.ico ?
lo there all, i am running two websites on one server. Both use the same code and both domains point to the same public folder. I use different logos by using a session variable called session[:domain] that i find with env_table[''HTTP_HOST''] so anyway, both need a different icon to go in the bookmarks and url, i know this is done with a favicon.ico, but can i force the server
2006 Jul 31
4
switching database dynamically based on incoming request
So I have this idea to reduce code replication in our rails setup. Currently we have our rails app serving two distinct sites, soon to be three. At the moment we check out a separate set of code for each site, and configure it by adjusting the database setting and some config files that pull in separate style sheets. To remove this replication I''d like to have a single codebase, but
2010 Jul 21
0
cgi_process.rb:22:in `__send__': undefined method `env_table
.htaccess is like this... AddHandler fcgid-script .fcgi RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f #RewriteRule ^(.*)$ dispatch.cgi [QSA,L] <--- commented RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] if I run.... ./dispatch.rb ./../config/environment.rb:35: warning: already initialized constant MONTHNAMES
2006 Mar 14
5
Apache2 + FastCGI + SSL: File upload fails with HTTPS
All, I have run into a road block with my RoR project. The app works fine without SSL but when 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?
2006 May 17
3
Rails "Application Error" with apache and mod_fcgid
Hello, I have a gentoo system that I am trying to remotely develop rails applications on using apache and fcgi. I created the simple hello world example from Dave Thomas'' book to test the system and I receive an "application error" when I try to go to the page. I can startup webrick and use links to view the page just fine, but nothing doing through apache. I have
2006 Feb 14
0
[REQUIREMENTS] Macromedia Flash View for Rails Controller
Hi I know there is no real requirements tag but I was unsure what to label this message, please don''t flame me :-). I am using the Javascript Integration Kit with Macromedia Flash to make a local connection to the rendered Rails view. I am then using Flash to render my page components (sort of like you do with Lazlo or Flex etc.) though Javascript acts as a proxy for me. Ideally I would
2007 Dec 16
0
Integration Testing - hang with post parameters
I''m getting some weirdness with integration testing. The following works fine if I don''t have parameters, but as soon as I add parameters I get a hang. Not sure exactly where it is hanging. NO HANG post ''user/register'' HANG post ''user/register'', :user => {:name => ''John Doe'', :email =>
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
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
2006 Jun 08
0
rq-2.3.3
HISTORY --- 2.3.3: - fixed bug in updater related to io files (see tmp_stdin in jobqueue.rb) - [IMPORTANT] removed feature where stdin jobs could contain comments (''#''). input lines are now taken literally __except__ blank lines, which are still ignored. - added ability to dump stdin/stdout/stderr for any job rq q stdout 42