search for: read_multipart

Displaying 14 results from an estimated 14 matches for "read_multipart".

2006 Sep 22
3
Mongrel spinning on read_multipart
On Zed''s suggestion, I caught two new spinning mongrels and sent a SIGUSR2. The code appears to be stuck in read_multipart for both processes: # kill -USR2 6109 ** USR2 signal received. Thu Sep 21 14:55:39 EDT 2006: Reaping 1 threads for slow workers because of ''shutdown'' Thread #<Thread:0x419d7ce0 run> is too old, killing. Waiting for 1 requests to finish, could take 60 seconds.Error calling D...
2006 Mar 14
5
Apache2 + FastCGI + SSL: File upload fails with HTTPS
..., 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? /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/ru...
2006 Apr 04
1
Apache, SSL, Mongrel and File upload question...
...n Ruby 1.8.4. See: http://shnoo.gr/articles/2006/04/03/ruby-1-8-4-breaks-net-http Josh http://shnoo.gr --- rails@lists.rubyonrails.org wrote: But now, alas, I try to upload a file. Attempting to upload a file gives me a ''bad content body'' error at line 981 of cgi.rb, in the read_multipart method. If I change that method to write its input out to a log, I see that $stdin looks very much like encrypted stuff and not at all like clear text.
2006 Sep 30
0
ActionPack CGI and Ruby 1.8.5
.../usr/local/bin/ruby test/controller/cgi_test.rb Loaded suite test/controller/cgi_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''...
2006 May 24
0
Mongrel errors on file upload
....8/tempfile.rb:12 C:/InstantRails-1.3/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'' C:/InstantRails-1.3/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/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 `initia...
2008 Apr 05
1
Problems getting file upload to work on rails 2.0.2
.../ruby/1.8/tempfile.rb:55:in `open'' /usr/lib/ruby/1.8/tempfile.rb:55:in `initialize'' /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/request.rb:521:in `new'' /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/request.rb:521:in `read_multipart'' /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/request.rb:517:in `loop'' /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/request.rb:517:in `read_multipart'' /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controlle...
2006 Mar 06
0
fastcgi upload - multipart problem
...astcgi-2.4.2-4 When starting whith webrick, my application uploads files correctly.When using both cgi or fastcgi, browser runs forever with files greater than 5kb. fastcgi log results : dispatcher failed to catch: bad content body (EOFError) cgi.rb :1021:in ''read_multipart'' Called from gems/1.8/actionpack-1.11.2/lib/action_controller/cgi_ext/raw_post_data_f ix.rb:20:initialize_query my rhtml 1: <%= start_form_tag ({:action => ''create''}, {:multipart => true}) %> ......
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
...sage is the followin: ''Application error Rails application failed to start properly'' Whereas in the log/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_cg...
2006 Jul 28
1
multipart/form-data support for Camping Apache/FastCGI
..., but the programmer who did the work for mongrel should not have much problem integrating the two I think. Apache/CGI is different and still will not work. I fuck around for a full day at the end of the day, I found Iowa another web framework and I try using their code but using Iowa::Request.new.read_multipart was more confusing than anything, although it helped me figuring it all out. I still use Iowa::FileData.new(nil, fh[:type], rx[((rx =~ /\r\n\r\n/) + 4)..-1]).store but a simple Tempfile could be used instead. I found another bug.... camping does not let me save more than 423 caracters in a sqlite...
2008 Feb 07
2
FAILSAFE error with uploads
...s the stack dump: /!\ FAILSAFE /!\ Wed Feb 06 19:13:41 -0700 2008 Status: 500 Internal Server Error protocol error /my/app/web/vendor/rails/actionpack/lib/action_controller/ request.rb:510:in `read'' /my/app/web/vendor/rails/actionpack/lib/action_controller/ request.rb:510:in `read_multipart'' /my/app/web/vendor/rails/actionpack/lib/action_controller/ request.rb:445:in `parse_multipart_form_parameters'' /my/app/web/vendor/rails/actionpack/lib/action_controller/ request.rb:383:in `parse_formatted_request_parameters'' /my/app/web/vendor/rails/actionpac...
2008 Jun 12
7
Problem uploading files (possibly an OS X issue?)
...!\ FAILSAFE /!\ Wed Jun 11 17:33:03 -0700 2008 Status: 500 Internal Server Error protocol error /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ request.r b:573:in `read'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ request.r b:573:in `read_multipart'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ request.r b:547:in `loop'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ request.r b:547:in `read_multipart'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_contr...
2007 Apr 27
3
Image upload problem.
I''ve seen posts of a few people who have this problem, but not a single response about solving it. I can''t upload .png files, but .jpg and .gif work fine. When I upload just a .png, my action gets a StringIO object which breaks when I try to copy the upload to an absolute location. However, using multiple-field upload, as long as one of the to-upload files is *not* a .png, all
2006 Mar 30
25
Mongrel Web Server 0.3.12 -- Finally Out
Hello Folks, This is the long awaited (like 2 weeks) 0.3.12 release of Mongrel. This release has received heavier testing than previous releases and supports a whole raft of improvements to existing functionality plus some new stuff. For those not clued in, Mongrel is a web server written in (mostly) Ruby. Check the funny dogs and read the docs about it at http://mongrel.rubyforge.org/. The