Hi, I am developing a web site using rails 2.1.2. I''m using restful_authentication. I get InvalidAuthenticityToken error at login in IE & Safari. Firefox works fine. What''s wrong? Thanks. Sam Full trace: vendor/rails/actionpack/lib/action_controller/request_forgery_protection.rb:86:in `verify_authenticity_token'' vendor/rails/activesupport/lib/active_support/callbacks.rb:173:in `send'' vendor/rails/activesupport/lib/active_support/callbacks.rb:173:in `evaluate_method'' vendor/rails/activesupport/lib/active_support/callbacks.rb:161:in `call'' vendor/rails/actionpack/lib/action_controller/filters.rb:191:in `call'' vendor/rails/actionpack/lib/action_controller/filters.rb:591:in `run_before_filters'' vendor/rails/actionpack/lib/action_controller/filters.rb:577:in `call_filters'' vendor/rails/actionpack/lib/action_controller/filters.rb:572:in `perform_action_without_benchmark'' vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'' /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'' vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'' vendor/rails/actionpack/lib/action_controller/rescue.rb:201:in `perform_action_without_caching'' vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:13:in `passenger_orig_perform_action'' vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'' vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in `cache'' vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:12:in `passenger_orig_perform_action'' /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/request_handler.rb:53:in `perform_action'' vendor/rails/actionpack/lib/action_controller/base.rb:529:in `send'' vendor/rails/actionpack/lib/action_controller/base.rb:529:in `process_without_filters'' vendor/rails/actionpack/lib/action_controller/filters.rb:568:in `process_without_session_management_support'' vendor/rails/actionpack/lib/action_controller/session_management.rb:130:in `process'' vendor/rails/actionpack/lib/action_controller/base.rb:389:in `process'' vendor/rails/actionpack/lib/action_controller/dispatcher.rb:149:in `handle_request'' vendor/rails/actionpack/lib/action_controller/dispatcher.rb:107:in `dispatch'' vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `synchronize'' vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `dispatch'' vendor/rails/actionpack/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi'' vendor/rails/actionpack/lib/action_controller/dispatcher.rb:35:in `dispatch'' /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/request_handler.rb:38:in `process_request'' /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_request_handler.rb:163:in `main_loop'' /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/application_spawner.rb:307:in `start_request_handler'' /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/application_spawner.rb:276:in `handle_spawn_application'' /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/utils.rb:165:in `safe_fork'' /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/utils.rb:163:in `fork'' /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/utils.rb:163:in `safe_fork'' /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/application_spawner.rb:274:in `handle_spawn_application'' /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/utils.rb:165:in `safe_fork'' /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/utils.rb:163:in `fork'' /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/utils.rb:163:in `safe_fork'' /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/application_spawner.rb:273:in `handle_spawn_application'' /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:317:in `__send__'' /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:317:in `main_loop'' /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:168:in `start_synchronously'' /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:135:in `start'' /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:112:in `fork'' /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:112:in `start'' /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/application_spawner.rb:177:in `start'' /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/spawn_manager.rb:218:in `spawn_rails_application'' /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/spawn_manager.rb:213:in `synchronize'' /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/spawn_manager.rb:213:in `spawn_rails_application'' /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/spawn_manager.rb:122:in `spawn_application'' /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/spawn_manager.rb:247:in `handle_spawn_application'' /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:317:in `__send__'' /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:317:in `main_loop'' /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:168:in `start_synchronously'' /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/bin/passenger-spawn-server:46 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, i''ve got the same problem. i cant find any fix for it neither can i reproduce it. it just "sometimes" works. Mike On 12 Nov., 05:44, Sam Kong <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hi, > > I am developing a web site using rails 2.1.2. > I''m using restful_authentication. > I get InvalidAuthenticityToken error at login in IE & Safari. > Firefox works fine. > > What''s wrong? > > Thanks. > > Sam > > Full trace: > > vendor/rails/actionpack/lib/action_controller/request_forgery_protection.rb:86:in > `verify_authenticity_token'' > vendor/rails/activesupport/lib/active_support/callbacks.rb:173:in `send'' > vendor/rails/activesupport/lib/active_support/callbacks.rb:173:in > `evaluate_method'' > vendor/rails/activesupport/lib/active_support/callbacks.rb:161:in `call'' > vendor/rails/actionpack/lib/action_controller/filters.rb:191:in `call'' > vendor/rails/actionpack/lib/action_controller/filters.rb:591:in > `run_before_filters'' > vendor/rails/actionpack/lib/action_controller/filters.rb:577:in > `call_filters'' > vendor/rails/actionpack/lib/action_controller/filters.rb:572:in > `perform_action_without_benchmark'' > vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue'' > /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'' > vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue'' > vendor/rails/actionpack/lib/action_controller/rescue.rb:201:in > `perform_action_without_caching'' > vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:13:in > `passenger_orig_perform_action'' > vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in > `cache'' > vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in `cache'' > vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:12:in > `passenger_orig_perform_action'' > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/request_handler.rb:53:in > `perform_action'' > vendor/rails/actionpack/lib/action_controller/base.rb:529:in `send'' > vendor/rails/actionpack/lib/action_controller/base.rb:529:in > `process_without_filters'' > vendor/rails/actionpack/lib/action_controller/filters.rb:568:in > `process_without_session_management_support'' > vendor/rails/actionpack/lib/action_controller/session_management.rb:130:in > `process'' > vendor/rails/actionpack/lib/action_controller/base.rb:389:in `process'' > vendor/rails/actionpack/lib/action_controller/dispatcher.rb:149:in > `handle_request'' > vendor/rails/actionpack/lib/action_controller/dispatcher.rb:107:in > `dispatch'' > vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in > `synchronize'' > vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in > `dispatch'' > vendor/rails/actionpack/lib/action_controller/dispatcher.rb:120:in > `dispatch_cgi'' > vendor/rails/actionpack/lib/action_controller/dispatcher.rb:35:in > `dispatch'' > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/request_handler.rb:38:in > `process_request'' > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_request_handler.rb:163:in > `main_loop'' > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/application_spawner.rb:307:in > `start_request_handler'' > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/application_spawner.rb:276:in > `handle_spawn_application'' > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/utils.rb:165:in > `safe_fork'' > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/utils.rb:163:in > `fork'' > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/utils.rb:163:in > `safe_fork'' > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/application_spawner.rb:274:in > `handle_spawn_application'' > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/utils.rb:165:in > `safe_fork'' > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/utils.rb:163:in > `fork'' > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/utils.rb:163:in > `safe_fork'' > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/application_spawner.rb:273:in > `handle_spawn_application'' > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:317:in > `__send__'' > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:317:in > `main_loop'' > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:168:in > `start_synchronously'' > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:135:in > `start'' > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:112:in > `fork'' > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:112:in > `start'' > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/application_spawner.rb:177:in > `start'' > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/spawn_manager.rb:218:in > `spawn_rails_application'' > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/spawn_manager.rb:213:in > `synchronize'' > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/spawn_manager.rb:213:in > `spawn_rails_application'' > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/spawn_manager.rb:122:in > `spawn_application'' > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/spawn_manager.rb:247:in > `handle_spawn_application'' > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:317:in > `__send__'' > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:317:in > `main_loop'' > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:168:in > `start_synchronously'' > /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/bin/passenger-spawn-server:46 > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Mike wrote:> Hi, > i''ve got the same problem. i cant find any fix for it neither can i > reproduce it. it just "sometimes" works. > MikeThanks for the reply. I couldn''t fix it. I just disabled forgery protection. :-( Sam -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---