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.

Tracks 1.7 doesn't work with Thin

#116

Tracks, a Rails application, does not work with Thin. After logging in Thin sends status code 500 and CGI::Session::CookieStore::CookieOverflow is raised. I'm attaching a message from the log file.

Tested with Thin 1.2.4 and Tracks 1.7. Mongrel and Webrick haven't got any problems with Tracks.

This issue was already reported on Tracks' bugtracker but has been closed as invalid.

Reported by Jan Stępień · October 6th, 2009 @ 10:21 AM

State: resolved
Milestone: Future
Assigned to: macournoyer macournoyer

Activity

  1. macournoyer
    macournoyer
    • State changed from new to open

    That looks like #111 ActiveRecord session store not creating new records with Thin 1.2.4 and Rails...

    Can you try w/ this patch and let me know if it fixes it?

    diff --git a/lib/rack/adapter/rails.rb b/lib/rack/adapter/rails.rb
    index 8e5fd81..24c3c06 100644
    --- a/lib/rack/adapter/rails.rb
    +++ b/lib/rack/adapter/rails.rb
    @@ -32,9 +32,7 @@ module Rack
           end
           
           def rack_based?
    -        ActionController.const_defined?(:Dispatcher) &&
    -          (ActionController::Dispatcher.instance_methods.include?(:call) ||
    -           ActionController::Dispatcher.instance_methods.include?("call"))
    +        Rails::VERSION::MAJOR >= 2 && Rails::VERSION::MINOR >= 3 && Rails::VERSION::TINY >= 2
           end
           
           def load_application
    

    October 7th, 2009 @ 08:41 PM

  2. macournoyer
    macournoyer

    Oops, this patch should work for real now:

    diff --git a/lib/rack/adapter/rails.rb b/lib/rack/adapter/rails.rb
    index 8e5fd81..24c3c06 100644
    --- a/lib/rack/adapter/rails.rb
    +++ b/lib/rack/adapter/rails.rb
    @@ -32,9 +32,7 @@ module Rack
           end
           
           def rack_based?
    -        ActionController.const_defined?(:Dispatcher) &&
    -          (ActionController::Dispatcher.instance_methods.include?(:call) ||
    -           ActionController::Dispatcher.instance_methods.include?("call"))
    +        ::Rails::VERSION::MAJOR >= 2 && ::Rails::VERSION::MINOR >= 3 && ::Rails::VERSION::TINY >= 2
           end
           
           def load_application
    

    October 8th, 2009 @ 08:00 AM

  3. macournoyer
  4. John
    John

    It's easy to agree that, people in the world love to play online casinos. I've been playing online casino provider for a long time and can't say anything bad about it.Also, it's unbelievable that I don't have to work for the whole day to have enough mr bet money.

    November 1st, 2024 @ 08:58 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.