Tracks 1.7 doesn't work with Thin
Reported by Jan Stępień | October 6th, 2009 @ 10:21 AM | in Future
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.
Comments and changes to this ticket
-
macournoyer October 7th, 2009 @ 08:41 PM
- State changed from new to open
That looks like https://thin.lighthouseapp.com/projects/7212/tickets/111-activereco...
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
-
macournoyer October 8th, 2009 @ 08:00 AM
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
-
macournoyer October 13th, 2009 @ 10:27 PM
- State changed from open to resolved
Should be fixed by http://github.com/macournoyer/thin/commit/b16e72ff779d9c077d2446266...
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »