≡

wincent.dev

  • Products
  • Blog
  • Wiki
  • Issues
You are viewing an historical archive of past issues. Please report new issues to the appropriate project issue tracker on GitHub.
Home » Issues » Bug #1247

Bug #1247: Rails 2.3.0 RC1 breaks logout

Kind bug
Product wincent.dev
When 2009-03-01T14:39:37Z
Status closed
Reporter Greg Hurrell
Tags no tags

Description

Just discovered this in local testing:

/!\ FAILSAFE /!\  Sun Mar 01 20:35:31 +0100 2009
  Status: 500 Internal Server Error
  You have a nil object when you didn't expect it!
The error occurred while evaluating nil.data=
    /Users/wincent/trabajo/unversioned/wincent.dev/src/vendor/rails/activerecord/lib/active_record/session_store.rb:300:in `set_session'
    /Users/wincent/trabajo/unversioned/wincent.dev/src/vendor/rails/activerecord/lib/active_record/base.rb:1454:in `silence'
    /Users/wincent/trabajo/unversioned/wincent.dev/src/vendor/rails/activerecord/lib/active_record/session_store.rb:298:in `set_session'
    /Users/wincent/trabajo/unversioned/wincent.dev/src/vendor/rails/actionpack/lib/action_controller/session/abstract_store.rb:116:in `call'
    /Users/wincent/trabajo/unversioned/wincent.dev/src/vendor/rails/actionpack/lib/action_controller/failsafe.rb:11:in `call'
    /Users/wincent/trabajo/unversioned/wincent.dev/src/vendor/rails/actionpack/lib/action_controller/rack_ext/lock.rb:15:in `call'
    /Users/wincent/trabajo/unversioned/wincent.dev/src/vendor/rails/actionpack/lib/action_controller/rack_ext/lock.rb:15:in `synchronize'
    /Users/wincent/trabajo/unversioned/wincent.dev/src/vendor/rails/actionpack/lib/action_controller/rack_ext/lock.rb:15:in `call'
    /Users/wincent/trabajo/unversioned/wincent.dev/src/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:83:in `call'
    /Users/wincent/trabajo/unversioned/wincent.dev/src/vendor/rails/railties/lib/rails/rack/static.rb:27:in `call'
    /Users/wincent/trabajo/unversioned/wincent.dev/src/vendor/rails/railties/lib/rails/rack/log_tailer.rb:17:in `call'
    /Library/Ruby/Gems/1.8/gems/rack-0.9.1/lib/rack/handler/mongrel.rb:59:in `process'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:159:in `process_client'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in `each'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in `process_client'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `initialize'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `new'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `initialize'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `new'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `run'
    /Library/Ruby/Gems/1.8/gems/rack-0.9.1/lib/rack/handler/mongrel.rb:32:in `run'
    /Users/wincent/trabajo/unversioned/wincent.dev/src/vendor/rails/railties/lib/commands/server.rb:100
    /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
    script/server:3

The line which does it is:

reset_session

In a controller action. Comment out the line and the crash goes away.

Comments

  1. Greg Hurrell 2009-03-01T15:00:35Z

    Ok, I have a workaround in place, and a ticket in the Rails tracker; see: http://rails.lighthouseapp.com/projects/8994/tickets/2108.

  2. Greg Hurrell 2009-03-01T15:00:55Z

    Product changed:

    • From: none
    • To: wincent.dev
  3. Greg Hurrell 2009-03-01T15:01:02Z

    Status changed:

    • From: New
    • To: Closed
Add a comment

Comments are now closed for this issue.

  • contact
  • legal

Menu

  • Blog
  • Wiki
  • Issues
  • Snippets