search for: cgi_ext

Displaying 20 results from an estimated 30 matches for "cgi_ext".

2006 Jun 21
7
sortable tree problem
...I set the tree option to true on Sortable. If I set the option to false my remote call works fine, but once I set it to true, I get some weird log errors from Webrick... undefined method `update'' for "11":String /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/cgi_ext/cgi_methods.rb:214:in `build_deep_hash'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/cgi_ext/cgi_methods.rb:214:in `build_deep_hash'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/cgi_ext/cgi_methods.rb:54:in `parse_request_parameters...
2006 Apr 17
3
help debugging an error
...f I go to the unrouted url, I still get the same error message. So, on a form submission, I get the following error: (it is not the regular rails error message, but a un-formatted error message) cannot convert String into Integer ./script/../config/../vendor/rails/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb:214:in `[]'' ./script/../config/../vendor/rails/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb:214:in `build_deep_hash'' ./script/../config/../vendor/rails/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb:214:in `build_deep_hash'' ./script/../c...
2007 Mar 23
0
Error - Conflicting types for parameter containers
...Scott Conflicting types for parameter containers. Expected an instance of Hash, but found an instance of String. This can be caused by passing Array and Hash based paramters qs[]=value&qs[key]=value. /Users/stamosunas/workspaces/ruby/mgs/config/../vendor/rails/ actionpack/lib/action_controller/cgi_ext/cgi_methods.rb:204:in `type_conflict!'' /Users/stamosunas/workspaces/ruby/mgs/config/../vendor/rails/ actionpack/lib/action_controller/cgi_ext/cgi_methods.rb:168:in `container'' /Users/stamosunas/workspaces/ruby/mgs/config/../vendor/rails/ actionpack/lib/action_controller/cgi_ext/cg...
2007 Dec 16
0
Integration Testing - hang with post parameters
...c.gmane.org'', :zipcode => ''12111'', :password => ''hello'', :password_confirmation => ''hello''} When I do a ctrl-C I get a bit of a trace... any ideas? from /Users/rodney/code/puppy/vendor/rails/actionpack/lib/action_controller/cgi_ext/query_extension.rb:76:in `read_body'' from /Users/rodney/code/puppy/vendor/rails/actionpack/lib/action_controller/cgi_ext/query_extension.rb:88:in `read_params'' from /Users/rodney/code/puppy/vendor/rails/actionpack/lib/action_controller/cgi_ext/query_extension.rb:46:in `initial...
2006 Jul 31
3
Problem in posting xml content.
...ata as the message content to my rails website, I can see the exception info in the log file. The error message is "can''t typecast" the element name in my xml document. The first line in backtrace is: "c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/cgi_ext/cgi_methods.rb:111:in`typecast_xml_value''" Please give me some information on how to settle this problem. Thanks. -- Posted via http://www.ruby-forum.com/.
2006 Mar 06
2
form_tag error -- not found, 404 -- action DOES exist!
...T Standard Time] "GET /site_visit/input/1 HTTP/1.1" 200 153359 http://localhost:3000/admin/visit_data -> /site_visit/input/1 #<NoMethodError: undefined method `update'' for "0":String> ["c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/cgi_ext/ cgi_methods.rb:116:in `build_deep_hash''", "c:/ruby/lib/ruby/gems/1.8/gems/action pack-1.9.1/lib/action_controller/cgi_ext/cgi_methods.rb:116:in `build_deep_hash'' ", "c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/cgi_ex t/cgi_methods....
2006 Apr 14
1
rake test errors
.../ruby/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...
2006 Sep 30
0
ActionPack CGI and Ruby 1.8.5
...ller/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'' test/controller/cgi_test.rb:355:in `open'' test/con...
2007 Dec 03
3
Request param type of array
...r"=>"params"} <% raise request.cgi.params.inspect %> {"myfield"=>["value1", "value2"], "_submit"=>["OK"]} ================ In Rails source code I have found such code: ---> actionpack-1.13.5/lib/action_controller/cgi_ext/cgi_methods.rb (line 23): def parse_request_parameters(params) parser = FormEncodedPairParser.new params = params.dup until params.empty? for key, value in params if key.blank? params.delete key elsif !key.include?(''[''...
2006 Mar 23
4
Error with Rails 1.1RC1 and Properties page
...; link, and an error was displayed: NoMethodError in Rails/info#properties private method `gsub'' called for 1:Fixnum RAILS_ROOT: script/../config/.. /usr/lib/ruby/1.8/cgi.rb:362:in `escapeHTML_fail_on_nil'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2.4008/lib/action_controller/cgi_ext/cgi_ext.rb:13:in `escapeHTML'' /usr/lib/ruby/gems/1.8/gems/rails-1.0.0.4008/builtin/rails_info/rails/info.rb:55:in `to_html'' /usr/lib/ruby/gems/1.8/gems/rails-1.0.0.4008/builtin/rails_info/rails/info.rb:53:in `each'' /usr/lib/ruby/gems/1.8/gems/rails-1.0.0.4008/builtin/rail...
2006 Jun 02
0
Warning messages after upgraded from rails 1.0 to 1.1
.../lib/ruby/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/l...
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 Nov 04
0
rake db:migrate is semi-broken
...gems/1.8/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/actionpac...
2006 Jan 14
1
BUG: HTTP body content get parsed in PUT call
...st upload 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 o...
2012 Apr 25
8
showing error (gsub) when switching from session to cookies
...he user to remember him/her. My Error and controller code is below Error:- private method `gsub'' called for 4:Fixnum C:/Users/Amir/Downloads/IR/ruby/lib/ruby/1.8/cgi.rb:342:in `escape'' C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/cgi_ext/cookie.rb:73:in `to_s'' C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/cgi_ext/cookie.rb:73:in `collect'' C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/cgi_ext/cookie.rb:73:in `to_s'...
2006 Jul 27
2
more on file upload
...rails code for inspiration, but it''s a bit outside of my knowledge..... not sure what to do with a FCGI::Stream object ..... this is what rails do for CGI, I''m not sure if it works the same for FCGI, I have not found the code yet. require actionpack-1.12.3/lib/action_controller/cgi_ext/cgi_methods.rb def query_parameters (qs = self.query_string).empty? ? {} : CGIMethods.parse_query_parameters(qs) end def request_parameters if ActionController::Base.param_parsers.has_key?(content_type) CGIMethods.parse_formatted_request_parameters(content_type, @e...
2006 Sep 22
3
Mongrel spinning on read_multipart
...econds.Error 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/l...
2006 May 30
0
UserEngine / LoginEngine + file upload
...Exception during setup of read_multipart_with_progress: undefined class/module Role I''m looking at the source code which is producing this error <at> http://server2.tecweb.inf.puc-rio.br:8000/projects/hyperde/trac.cgi/browser/branches/adapt/vendor/actionpack/lib/action_controller/cgi_ext/multipart_progress.rb?rev=26 But to be honest, I''m not sure where/why this pops up. Any suggestions? Thanks. Ilya -- Posted via http://www.ruby-forum.com/.
2006 Mar 06
0
fastcgi upload - multipart problem
...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}) %> ... my rhtml 2: ... <input type="file" name="myfile"&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