Bug #735
problem in filters.rb
| Status : | Closed | Start : | ||
| Priority : | Normal | Due date : | ||
| Assigned to : | scott - | % Done : | 0% |
|
| Category : | backend | |||
| Target version : | 4.0 | |||
| Resolution : | wontfix |
Description
I'm getting this on every page:
Filter chain halted as [#<Proc:0xb7c51294@/.../public/../config/../vendor/rails/actionpack/lib/action_controller/filters.rb:226>] returned false
Running Rails 1.1.2 and trunk rev. 1026.
Pardon if this has been addressed elsewhere -- I searched and didn't find resolution.
History
04/18/2006 10:44 PM - kevin -
Do you have a custom filter installed? that means the filter it tried to run had an error.
04/18/2006 10:48 PM - av-avlux-net -
No custom filters installed. This is a very vanilla install of trunk 1026.
Would it make sense to clear the text_filters table in the DB, and then re-run rake migrate?
04/19/2006 05:11 PM - av-avlux-net -
Is there any way to debug this?
Filter chain halted as [#<Proc:0xb7c33294@/..../public/../config/../vendor/rails/actionpack/lib/action_controller/filters.rb:226>] returned false
04/20/2006 07:23 AM - kevin -
Ok, reading more carefully that's actually not a textfilter, that's a controller's before filter. Hrm. I don't know what would cause that, or what the problem is. Sorry.
04/27/2006 11:13 PM - sprewell -
I just tested r1029 and the filter chain output is still cropping up. Does the fix work for anyone else?
05/03/2006 12:30 AM - michele-franzin-seesaw-it -
tested revision 1029 but the problem still remains :-(
05/04/2006 01:03 PM - jo-vermeulen-gmail-com -
I have the same problem, any ideas? Updating didn't work (currently at revision 1039).
05/09/2006 12:11 PM - jo-vermeulen-gmail-com -
This might have something to do with Raisl 1.0 and 1.1 incompatibilities, since my blog is hosted on Site5, and they still use 1.0 as far as I know. I noticed that Typo from svn is becoming more and more unstable (in constrast to before), so I was wondering if it's possible to migrate back to 2.6.0, just until 4.0 is out?
05/09/2006 04:00 PM - kevin -
Uhhh, yeah. Typo trunk doesn't work with Rails 1.0. If you're using svn, though, it should automatically check Rails 1.1.2 out into the vendor directory, so it should be using that. If you're using some other tool (like, for example, svk) to get Typo trunk, then you should check out Rails 1.1.2 to the vendor/rails directory yourself.
05/09/2006 04:05 PM - jo-vermeulen-gmail-com -
It gets checked out in the vendor directory, and it should use that as well. But maybe there's another incompatibility at Site5 somewhere (don't know). Does anyone know how to resolve the filter problem?
06/30/2006 04:08 AM - zan99-yahoo-com -
Running Typo on site5 and getting filter chain halted error as well. Restarting fastcgi with "killall -9 dispatch.fcgi" fixes it for me temporarily, but it inevitably comes back.
07/09/2006 05:31 PM - linda-innovatesolutions-com -
I am getting the same thing and came across this post
http://lists.rubyonrails.org/pipermail/rails/2006-May/044223.html
sounds like it could be a rails 1.8.2 vs 1.8.4 problem
07/10/2006 12:44 AM - scott -
- Status changed from New to Assigned
Is this still happening with the most recent trunk? If you're still seeing it, can you report:
1. Your Ruby version
2. Your Rails version
3. Your DB
4. Production or development mode
5. Which theme?
07/10/2006 03:14 AM - linda-innovatesolutions-com -
ruby 1.8.4 (2005-12-24) [i386-solaris2.8]
Rails 1.1.2
mysql Ver 14.12 Distrib 5.0.22, for pc-solaris2.8 (i386) using readline 5.0
Production
Lush
We have apache2 server with mongrel running rails.
07/11/2006 03:34 PM - sprewell -
Took me a while but I finally figured this out. This is an existing problem with rails because it implements action caching as a filter. When you hit the cache, it serves the cached copy and exits the filter. As all filters that are exited are logged, this happens on every cache hit. I tried it with caches_action in rails and verified that it also spits out this error. I wish there were some way to skip this logging on cache hits but I don't see one.
07/11/2006 03:58 PM - scott -
- Status changed from Assigned to Closed
- Resolution set to wontfix
I don't see any way around this. Any time a filter exits 'false', it logs an error and aborts the filter chain. Except that's what the action cache is supposed to do. It has to abort the filter chain on a cache hit, or it's not actually a cache :-).
I don't see any way to avoid the warning short of setting and resetting 'logger' with the cache, but I don't see how we'd reset it after returning false.
Since this is ONLY a log issue, not a visible problem, I'm going to call it 'wontfix'. Feel free to reopen if you have a fix.
