Exception Notification plugin not working with Rails 2.1?
74 views
Skip to first unread message
Trevor Turk
unread,
Jun 4, 2008, 5:49:15 PM6/4/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails: Core
We seemed to stop getting exception notifications in an app that's
using Rails 2.1 recently, and I did some digging to try and figure out
what the problem was. I think I'm onto the issue, but it would appear
that my Ruby-fu is still too weak to find a solution just yet.
Here's a failing test with the plugin in a fresh Rails 2.1 app:
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rubyonra...@googlegroups.com
> Any help would be appreciated!
If it's just about making the method protected you should be able to change:
@controller.filter_parameters(parameters)
to
@controller.send(:filter_parameters, parameters)
-- Cheers
Koz
Trevor Turk
unread,
Jun 5, 2008, 1:44:39 PM6/5/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails: Core
On Jun 4, 6:32 pm, "Michael Koziarski" <mich...@koziarski.com> wrote:
> If it's just about making the method protected you should be able to change:
> @controller.filter_parameters(parameters)
> to
> @controller.send(:filter_parameters, parameters)
Thanks for your reply, Koz. This strategy you suggested appears to fix
the issue of the plugin not sending emails when exceptions are raised
in an app using Rails 2.1:
===
Just to be clear for others that may be impacted by this issue: the
exception_notification plugin does not appear to work with Rails 2.1
applications!
===
Thanks again,
- Trevor
tshim
unread,
Jul 2, 2008, 6:43:29 PM7/2/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails: Core
I'm just chiming in to confirm this bug and the suggested fix -- but
shouldn't this be tracked as an exception_notifier bug, not a rails
bug?
Yong Bakos
unread,
Jul 2, 2008, 7:07:20 PM7/2/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails: Core
After the above mentioned fix you may find another error.
Also fixed similarly as above, this time on exception_notifier_helper
line 76: