Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

can't rescue_from ActionController::InvalidAuthenticationToken

#3599

attached I have a failing test case for rescuing from an InvalidAuthenticationToken exception

Users are getting this exception when their sessions expire (which is intended), so I wanted to handle for it gracefully via a rescue_from

My shot in dark guess at this is because the exception occurs in ActionController::Base and not ApplicationController or the controller itself so the rescue_from doesn't get evaluated. I have not fully traced this down yet, though.

ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.0.0]

Reported by Dan Pickett · December 19th, 2009 @ 01:01 AM

State: stale
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. Dan Pickett
    Dan Pickett

    this patch is intended for 2-3-stable fyi

    December 19th, 2009 @ 01:03 AM

  2. Ryan Bigg
    Ryan Bigg
    • State changed from new to open
    • Importance changed from to Low

    +1 this patch applies cleanly to 2-3-stable and results in a failing test.

    October 7th, 2010 @ 10:22 PM

  3. Santiago Pastorino
    Santiago Pastorino

    This issue has been automatically marked as stale because it has not been commented on for at least three months.

    The resources of the Rails core team are limited, and so we are asking for your help. If you can still reproduce this error on the 3-0-stable branch or on master, please reply with all of the information you have about it and add "[state:open]" to your comment. This will reopen the ticket for review. Likewise, if you feel that this is a very important feature for Rails to include, please reply with your explanation so we can consider it.

    Thank you for all your contributions, and we hope you will understand this step to focus our efforts where they are most helpful.

    February 2nd, 2011 @ 04:58 PM

  4. Santiago Pastorino
    Santiago Pastorino
    • State changed from open to stale

    February 2nd, 2011 @ 04:58 PM