rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org
2006-Sep-17 17:36 UTC
mongrel + apache + acts_as_authentication = status 500 error
I''ve got an app that uses the acts_as_authentication plugin. On webbrick it works fine, when deployed on mongrel + apache, i''m getting status 500 errors when a controller action is invoked that requires the user to be logged in. It returns the status 500 error and spews html rather than rendering it on the redirect to the login page. Further more, it shouldn''t be redirecting at all since the before_filter has an exception for the particular action I''m calling. It also seems to ignore the following: before_filter :login_required, :except => [ :action_x] Under webrick, if someone that isn''t authenticated calls action_x, no problem works as expected. Under mongrel + apache, it still thinks the user needs to be authenticated. Any ideas/suggestions? Basically, acts_as_authenticated seems to be puking badly when used with mongrel. Thanks -- 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 -~----------~----~----~----~------~----~------~--~---
Ryan King
2006-Sep-17 20:02 UTC
Re: mongrel + apache + acts_as_authentication = status 500 error
On 9/17/06, rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > I''ve got an app that uses the acts_as_authentication plugin. On webbrick > it works fine, when deployed on mongrel + apache, i''m getting status 500 > errors when a controller action is invoked that requires the user to be > logged in. It returns the status 500 error and spews html rather than > rendering it on the redirect to the login page. Further more, it > shouldn''t be redirecting at all since the before_filter has an exception > for the particular action I''m calling. > > It also seems to ignore the following: > > before_filter :login_required, :except => [ :action_x] > > Under webrick, if someone that isn''t authenticated calls action_x, no > problem works as expected. Under mongrel + apache, it still thinks the > user needs to be authenticated. > > Any ideas/suggestions? > > Basically, acts_as_authenticated seems to be puking badly when used with > mongrel.What do your logs say? -ryan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---