search for: cookie_store

Displaying 20 results from an estimated 40 matches for "cookie_store".

2012 Mar 02
3
Generating new application creates a few syntactically bad files in Rails 3.2.1
Running "rails new yourapplicationname" creates all the requisite files, however two of them have bad syntax. session_store.rb is: YourApplicationName::Application.config.session_store :cookie_store, key: ''_yourapplicationname_session'' should be: YourApplicationName::Application.config.session_store :cookie_store, :key => ''_yourapplicationname_session'' wrap_parameters.rb is: wrap_parameters format: [:json] should be: wrap_parameters :format =>...
2009 Sep 28
2
Error with flash and form_authenticity_token in new rails application with scaffolding
...ems/activesupport-2.3.4/lib/ active_support/message_verifier.rb:45:in `secure_compare'' /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/ active_support/message_verifier.rb:28:in `verify'' /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/ action_controller/session/cookie_store.rb:156:in `unmarshal'' /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/ action_controller/session/cookie_store.rb:145:in `load_session'' /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/ action_controller/session/abstract_store.rb:62:in `block in load!'' /us...
2009 Feb 19
1
Switching to ActiveRecord Session Store
...to active record sessions. I''ve created the sessions table via the rake task, uncommented the line config.action_controller.session_store = :active_record_store in my environment.rb file, cleared out my browsers cookies, restarted the server (natch), but still the it''s using cookie_store instead of active_record store. Just to be sure, I added puts statements in the initializer block of each separate store''s ruby classes in vendor rails, and only "cookie_store initialized" come out. What am I missing here? I''ve tried commenting out the secret key lines:...
2009 Apr 20
1
Upgrading rails to 2.3.2 - CookieOverflow issue
Folks, I am trying to upgrade system from rails 1.3.x to 2.3.2 and getting this error - Status: 500 Internal Server Error ActionController::Session::CookieStore::CookieOverflow /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ session/cookie_store.rb:102:in `call'' /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ reloader.rb:9:in `call'' /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ failsafe.rb:11:in `call'' /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_co...
2008 Feb 22
2
ActiveRecord::DangerousAttributeError ???
...record-2.0.2/lib/active_record/ attribute_methods.rb:63:in `define_attribute_methods'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ attribute_methods.rb:290:in `respond_to?'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/session/cookie_store.rb:133:in `dump'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/session/cookie_store.rb:133:in `marshal'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/session/cookie_store.rb:111:in `close'' /usr/local/lib/ruby/1.8/cgi...
2011 Jun 01
7
desperate, errors with file upload
.../ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/ message_verifier.rb:38:in `dump'' /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/ message_verifier.rb:38:in `generate'' /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/ session/cookie_store.rb:157:in `marshal'' /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/ session/cookie_store.rb:106:in `call'' /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/ failsafe.rb:26:in `call'' /usr/lib/ruby/1.8/rack/lock.rb:11:in `cal...
2009 Oct 28
6
undefined method `^' for "e":String
...1/gems/activesupport-2.3.4/lib/active_support/message_verifier.rb:45:in `secure_compare'' /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/message_verifier.rb:28:in `verify'' /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/session/cookie_store.rb:156:in `unmarshal'' /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/session/cookie_store.rb:145:in `load_session'' /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/session/abstract_store.rb:62:in `block in load!'' /usr/...
2007 Mar 30
7
Some additional attacks on Cookie Session
...The correct way to use the key is to repeatedly XOR it to the data, not append it. 5. Key Storage One of the most common crypto truisms developers know is "Don''t store passwords in the clear". Backups are made, files are transferred, and the bad guys job is made too easy. In cookie_store, the app''s key is stored directly in the clear. No ephemeral key is used. If an attacker see''s this, it''s equivalent to getting *everyone''s* password. Even worse, since he can create arbitrary sessions. To make matters worse, the source code seems to suggest...
2007 Dec 17
0
[CruiseControl] RubyOnRails build 8425 failed
...remove an unneeded backslash (closes #10511) [fxn] M /trunk/actionpack/lib/action_view/template_handlers/erb.rb A /trunk/actionpack/test/template/erb_util_test.rb Revision 8423 committed by david on 2007-12-16 23:55:22 Fix doc (closes #10526) M /trunk/actionpack/lib/action_controller/session/cookie_store.rb Revision 8424 committed by david on 2007-12-16 23:59:23 Docfix (closes #10493) M /trunk/actionpack/lib/action_view/helpers/text_helper.rb Revision 8425 committed by david on 2007-12-17 00:06:24 Added OPTIONS to list of default accepted HTTP methods (closes #10449) [holoway] M /trunk/action...
2010 Mar 23
3
NoMethodError in AdminController#index
...ead.rb:9:in `call'' /usr/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/methodoverride.rb: 24:in `call'' /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/ params_parser.rb:15:in `call'' /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/ session/cookie_store.rb:93:in `call'' /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/ failsafe.rb:26:in `call'' /usr/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `call'' /usr/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `synchronize'' /usr/lib/...
2010 Aug 23
7
Sharing sessions between a rails3 app and a rails2 app. Rails 2 app crashes.
Hey all. I have two apps. One is a rails3 app and the other is a rails 2 app. Using proxying I am routing actions in the myapp.com/foo to the rails2 app. It almost works! I can set a session variable and a cookie variable on the first app (myapp.com) and then read them on the second app (myapp.com/foo). It only works the first time though. If I go back to myapp.com and then revisit
2010 Aug 03
2
PDFKit Fork() Function Unimplemented Error - HELP!
...C:/Ruby186/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/methodoverride.rb:24:in `call'' C:/Ruby186/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/params_parser.rb:15:in `call'' C:/Ruby186/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/session/cookie_store.rb:99:in `call'' C:/Ruby186/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/failsafe.rb:26:in `call'' C:/Ruby186/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/lock.rb:11:in `call'' C:/Ruby186/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/lock.rb:11:in `sy...
2009 Apr 22
3
Error on running any controller- Noob question
.../Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ params_parser.rb:15:in `call'' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ rewindable_input.rb:25:in `call'' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ session/cookie_store.rb:93:in `call'' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ reloader.rb:9:in `call'' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ failsafe.rb:11:in `call'' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_contro...
2010 Jun 15
3
Newbie trying to set up rails with MySQL
...:/Ruby186/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/ methodoverride.rb:24:i n `call'' C:/Ruby186/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/ action_controller/par ams_parser.rb:15:in `call'' C:/Ruby186/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/ action_controller/ses sion/cookie_store.rb:99:in `call'' C:/Ruby186/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/ action_controller/fai lsafe.rb:26:in `call'' C:/Ruby186/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/lock.rb: 11:in `call'' C:/Ruby186/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/lock.rb: 11:in...
2009 Jun 30
2
First time problem
...b/ruby/gems/1.8/gems/actionpack-2.3.2/lib/ action_controller/params_parser.rb:15:in `call'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/ action_controller/rewindable_input.rb:25:in `call'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/ action_controller/session/cookie_store.rb:93:in `call'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/ action_controller/reloader.rb:9:in `call'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/ action_controller/failsafe.rb:11:in `call'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/...
2010 Mar 24
1
Trouble starting the server, HELP PLEASE!
...sers/peterorpete/.gem/ruby/1.8/gems/rack-1.0.1/lib/rack/ methodoverride.rb:24:in `call'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/ action_controller/params_parser.rb:15:in `call'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/ action_controller/session/cookie_store.rb:93:in `call'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/ action_controller/failsafe.rb:26:in `call'' /Users/peterorpete/.gem/ruby/1.8/gems/rack-1.0.1/lib/rack/lock.rb: 11:in `call'' /Users/peterorpete/.gem/ruby/1.8/gems/rack-1.0.1/lib/rack/lock.rb...
2009 Jun 13
5
undefined method `valid_password?'
...#39;' /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/params_parser.rb:15:in `call'' /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/rewindable_input.rb:25:in `call'' /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/session/cookie_store.rb:93:in `call'' /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/reloader.rb:9:in `call'' /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/failsafe.rb:11:in `call'' /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/vendor...
2010 Jan 11
0
FAILSAFE error when attempting custom POST - How do I fault find for this?
.../opt/local/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/ methodoverride.rb:15:in `call'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/ action_controller/params_parser.rb:15:in `call'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/ action_controller/session/cookie_store.rb:93:in `call'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/ action_controller/reloader.rb:29:in `call'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/ action_controller/failsafe.rb:26:in `call'' /opt/local/lib/ruby/gems/1.8/gems/rack-1.0.1/l...
2011 May 19
3
Cookie Overflow at CSV import
...d_jobs table. The code below is copied from other threads, so I don''t really know where I save something in cookies. I guess it is at ''file.tempfile'' in the controller, but I am not sure. How can I avoid that error? I found something about using session_store instead of cookie_store, but I don''t know how to do that. I have the following in my controller: file = params[:file] CSV.new(file.tempfile, {:headers => false, :col_sep => ";"}).each do |row| @list << row[1] end end and this in my view: <%=form_tag '...
2010 Apr 09
3
"We're sorry, but something went wrong"
...;' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/ methodoverride.rb:24:in `call'' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/ action_controller/params_parser.rb:15:in `call'' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/ action_controller/session/cookie_store.rb:93:in `call'' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/ action_controller/failsafe.rb:26:in `call'' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `call'' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `synchroniz...