Displaying 8 results from an estimated 8 matches for "query_parameters".
2007 Oct 22
0
[PATCH] - AbstractRequest#parameters destructively overwrites request_ and query_parameters
Hi guys,
I''m looking for some +1''s for a bug fix patch I submitted:http://
dev.rubyonrails.org/ticket/9949
AbstractRequest#parameters is overwriting request_parameters when
called, so I drew up a patch and test case to fix it. Any people
willing to try it out would be much appreciated.
Thank,
Scott Fleckenstein
--~--~---------~--~----~------------~-------~--~----~
You
2006 Jun 16
0
rake spec controller test output hideus.
...newbob@mcbob.com"}, "action"=>"signup",
"controller"=>"user"},
@request=#<ActionController::TestRequest:0x24d6894
@session_options={}, @accepts=nil,
@symbolized_path_parameters={:controller=>"user", :action=>"signup"},
@query_parameters={"action"=>"signup"}, @host="test.host",
@cookies={}, @env={"REMOTE_ADDR"=>"0.0.0.0",
"REQUEST_URI"=>"/user/signup?user=passwordnewpasswordloginnewbobemailnewbob%40mcbob.compassword_confirmationwrong",
"SERVER_PORT&...
2008 Jan 24
5
Is there a test for setting the session ID to the fb_sig_session_key param?
Hey all,
I have a patch that fixes a problem I am having with IFramed pages in
rails 2.0. I am relying on the session being retrieved via
fb_sig_session_key. I am looking for the test code that tests this
functionality but I can''t seem to find it.
So you on the list today Chad, gotta pointer for me?
Thanks, I want to get a test in for this fix,
Dave
2006 Jul 27
2
more on file upload
...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,
@env[''RAW_POST_DATA''])...
2011 Jan 10
0
Can't use ActionDispatch::Request in Rails middleware because path_parameters get lost
...; method.
You can see the code in question here:
# file: action_dispatch/http/parameters.rb
# Returns both GET and POST \parameters in a single hash.
def parameters
@env["action_dispatch.request.parameters"] ||= begin
params = request_parameters.merge(query_parameters)
params.merge!(path_parameters)
encode_params(params).with_indifferent_access
end
end
alias :params :parameters
def path_parameters=(parameters) #:nodoc:
@symbolized_path_params = nil
@env.delete("action_dispatch.request.parameters...
2013 Apr 08
0
Safely persisting query parameters in Rails 3.1
..., controller: ''employees'', host: ''foo.bar'', params: {''eee'' => 3}# => "http://foo.bar/employees?eee=3"Symbol.all_symbols.map(&:to_s).include? ''eee''# => false
In other words, you can pass `params: request.query_parameters` to
`url_for` to avoid the potential DOS issue.
However we still support Rails 3.0 and 3.1, and they completely ignore
`:params`.
Save for monkeypatching, has anyone found a way to safely provide this
functionality?
Thanks,
Sean Linsley
--
You received this message because you are subscribe...
2007 Jan 31
7
GET request works via curl, crashes from Java
...r/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:496:in
`require''
script/server:3
Here''s the code in request.rb:
# Returns both GET and POST parameters in a single hash.
def parameters
@parameters ||=
request_parameters.update(query_parameters).update(path_parameters).with_indifferent_access
end
The Java program is expecting an xml file and obviously isn''t getting
what it is supposed to:
org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Content
is not allowed in prolog.
I thought it was unlikely to be helpfu...
2005 May 12
26
performance update
I have made additional progress with regard to performance. My latest data:
configuration 1: r121.latest
configuration 2: r121p.latest
page c1 real c2 real c1 r/s c2 r/s c1/c2
/empty/index 6.75525 1.71983 148.0 581.5 3.93
/welcome/index 6.89044 1.89244 145.1 528.4 3.64
/rezept/index 4.99573