Francois Beausoleil
2005-Dec-17 17:15 UTC
Session store failure does not report error anywhere
Hi ! I don't know if you've seen the thread on the main Rails ML, but I found a problem in Rails handling of session stores. I configured the ActiveRecord session store, but had no sessions table. Rails did not automatically create the table, nor did it report the missing table in the log, and finally, I did not get any message in the browser (was running in production). I think that this precondition should be checked at configuration time. My implementation would go something like this: In ActionController::SessionManagement::ClassMethods#session_store=, check if the proposed session store responds_to :validate!, and send if so. Then, implement ActiveRecordStore#validate!, and raise a configuration error if we can't stat the table. It's either that, or the table is created at that point. How does that sound as a plan ? -- François Beausoleil http://blog.teksol.info/ _______________________________________________ Rails-core mailing list Rails-core@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-core