This project is archived and is in readonly mode.

#3599 ✓stale
Dan Pickett

can't rescue_from ActionController::InvalidAuthenticationToken

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

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]

Comments and changes to this ticket

  • Dan Pickett

    Dan Pickett December 19th, 2009 @ 01:03 AM

    this patch is intended for 2-3-stable fyi

  • Ryan Bigg

    Ryan Bigg October 7th, 2010 @ 10:22 PM

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

  • Santiago Pastorino

    Santiago Pastorino February 2nd, 2011 @ 04:58 PM

    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.

  • Santiago Pastorino

    Santiago Pastorino February 2nd, 2011 @ 04:58 PM

    • State changed from “open” to “stale”

Create your profile

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

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages