Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Changeset [ebee77a28a7267d5f23a28ba23c1eb88a2d7d527] by Michael Lovitt

Revision ebee77a28a7267d5f23a28ba23c1eb88a2d7d527, committed by Michael Lovitt · June 27th, 2010 @ 09:39 PM

Fixed that an ArgumentError is thrown when request.session_options[:id] is read in the following scenario: when the cookie store is used, and the session contains a serialized object of an unloaded class, and no session data accesses have occurred yet. Pushed the stale_session_check responsibility out of the SessionHash and down into the session store, closer to where the deserialization actually occurs. Added some test coverage for this case and others related to deserialization of unloaded types.

[#4938]

Signed-off-by: José Valim jose.valim@gmail.com
http://github.com/rails/rails/commit/ebee77a28a7267d5f23a28ba23c1eb...

6 changed files

  • A actionpack/test/fixtures/session_autoload_test/session_autoload_test/foo.rb
  • M actionpack/lib/action_dispatch/middleware/session/abstract_store.rb
  • M actionpack/lib/action_dispatch/middleware/session/cookie_store.rb
  • M actionpack/test/abstract_unit.rb
  • M actionpack/test/dispatch/session/cookie_store_test.rb
  • M actionpack/test/dispatch/session/mem_cache_store_test.rb