#27 ✓invalid
Jason Rohwedder

errors with authlogic 1.3.9, rails 2.2.2 on jruby 1.1.6

Reported by Jason Rohwedder | January 18th, 2009 @ 05:09 PM

I've been going through the tutorial at [ http://www.binarylogic.com/2008/11/3/tutorial-authlogic-basic-setup ]

I believe I've completed all the steps correctly, with some slight modifications for jruby-fication. When I go to create a user I get an error that seems to be with new timezone changes in rails.

"comparison of ActiveSupport::TimeWithZone with 1232315634 failed"
ArgumentError (comparison of ActiveSupport::TimeWithZone with 1232315634 failed):
    /Users/jro/dev/jruby_root/jruby-1.1.6/lib/ruby/gems/1.8/gems/authlogic-1.3.9/lib/authlogic/session/timeout.rb:21:in `update_last_request_at!'
    /Users/jro/dev/jruby_root/jruby-1.1.6/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb:178:in `evaluate_method'
    /Users/jro/dev/jruby_root/jruby-1.1.6/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb:166:in `call'
    /Users/jro/dev/jruby_root/jruby-1.1.6/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb:90:in `run'
    /Users/jro/dev/jruby_root/jruby-1.1.6/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb:90:in `each'
    /Users/jro/dev/jruby_root/jruby-1.1.6/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb:90:in `run'
    /Users/jro/dev/jruby_root/jruby-1.1.6/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb:277:in `run_callbacks'
    /Users/jro/dev/jruby_root/jruby-1.1.6/lib/ruby/gems/1.8/gems/authlogic-1.3.9/lib/authlogic/session/callbacks.rb:38:in `find_record_with_callbacks'
    /Users/jro/dev/jruby_root/jruby-1.1.6/lib/ruby/gems/1.8/gems/authlogic-1.3.9/lib/authlogic/session/base.rb:65:in `find'

Comments and changes to this ticket

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 ยป

Object based authentication solution that handles all of the non sense for you. It's as easy as ActiveRecord is with a database.

People watching this ticket

Pages