[LRUG] Exception notifier and bots
Pratik Naik
pratik at thinkwares.com
Thu Jul 31 08:04:00 PDT 2008
Just pushed http://github.com/rails/rails/commit/108db00aa90fe266564483ab301cf0669cae600f
so that it's easier to catch those with rescue_from.
Thanks.
On Thu, Jul 31, 2008 at 3:00 PM, Matthew Rudy Jacobs
<matthewrudyjacobs at gmail.com> wrote:
> only if you use attr_allowed
>
>>> User.new("this" => "doesnt have a writer")
> NoMethodError: undefined method `this=' for #<User:0x37b0d38>
> from
> /Users/matthew/code/aspire/vendor/rails/activerecord/lib/active_record/attribute_methods.rb:201:in
> `method_missing'
>
> will always happen otherwise.
>
> and doing :attr_allowed everywhere is a big hassle!
>
> 2008/7/31 Tom Stuart <tom at experthuman.com>
>>
>> On 31 Jul 2008, at 14:44, Matthew Rudy Jacobs wrote:
>>>
>>> We get quite a few errors from bots trying to inject random stuff.
>>> So they pump in params that don't exist, and we barf on them.
>>
>> What Pratik said. Ideally the app won't actually barf (i.e. 500 error) no
>> matter what params you throw at it.
>> _______________________________________________
>> Chat mailing list
>> Chat at lists.lrug.org
>> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>
>
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>
>
--
http://m.onkey.org
More information about the Chat
mailing list