#116 ✓resolved
Jan Stępień

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

    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

    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
  • John

    John November 1st, 2024 @ 08:58 AM

    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.

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket

Attachments

Pages