Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #11520 (new defect)

Opened 8 months ago

[PATCH] fix for database session store when ActiveRecord Oracle adapter is used

Reported by: raymonds Assigned to: schoenm@earthlink.net
Priority: high Milestone: 2.x
Component: ActiveRecord Version: 2.0.1
Severity: major Keywords:
Cc:

Description

As Oracle adapter is not part of ActiveRecord in Rails 2.0 it is loaded after ActionPack class definitions. As a result at first CGI::Session::ActiveRecordStore::Session class is defined which inherits from ActiveRecord::Base and only afterwards OracleAdapter is loaded which adds write_lobs callback to ActiveRecord::Base but at this point it is not adding this callback to already defined Session class.

As a result when database session store is selected no session data are being stored in sessions table.

Attached patch adds missing after_save callback to Session class after OracleAdapter is loaded.

Attachments

session_store_patch.diff (417 bytes) - added by raymonds on 04/03/08 17:09:31.

Change History

04/03/08 17:09:31 changed by raymonds

  • attachment session_store_patch.diff added.