Closed (fixed)
Project:
Spam
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Jul 2009 at 21:50 UTC
Updated:
20 Aug 2009 at 21:10 UTC
On Kerneltrap, I'm finding that some postings made by anonymous users are getting a score of 0 as if they've not been filtered at all. It seems to be happening to forum posts, the majority of which are properly filtered. This is allowing spam to slip through that otherwise would not.
I need to turn up the debug level and see if I can collect more information about why this is happening. Has anyone else experienced this?
Comments
Comment #1
jeremy commentedI managed to collect some debug. We get as far as invoking the first filter, and then it seems to just exit and so the content is approved (you have to read the logs from bottom to top, the trace feature is evidently not working correctly):
Here is the 'detail' view from the final log entry:
I do not find any PHP errors or anything else odd in the Apache logs around the same time.
Here are the logs when I manually unpublish this content - as you can see there does not appear to be anything special or fancy about this spam content:
Comment #2
jeremy commentedReviewing the actual node, I do note that the content has an empty teaser -- we need to test to be sure that this doesn't cause it to slip by some how. The subject is also a URL, though I'm sure I've tested that many times.
Another oddity -- it's a forum post, but it's not assigned to any forum, which seems quite peculiar.
Comment #3
jeremy commentedUgh -- I duplicated this late last night somehow and ran out of energy for debugging. This morning I sat down to debug, and now it's not happening even though I believe I'm doing the same thing. Evidently it's something intermittent that I'm not yet seeing.
An empty teaser does not affect anything -- this content is filtered per normal on my dev server.
Comment #4
jeremy commentedI reinstalled the spam module and once again thought I might be duplicating this bug. Unfortunately I was instead running into this:
#541876: Spam filters are not enabled until you visit filter settings page
Has anyone else run into an issue where content is slipping through the filters with a score of 0, as if it was not filtered at all? This is happening very frequently on KernelTrap.org, and I've yet to figure out why.
I'm adding additional debug to try and figure out where things are going wrong:
http://drupal.org/cvs?commit=247532
Comment #5
jeremy commentedI finally tracked this down, thanks to this fix:
#541950: spam content not prevented
With this fix applied, we see this in the logs:
So the nodes that were slipping through were being told that their IP was denied, but had already been posted -- thus there's still a bug here, we should be sure to unpublish any content that we determine is spam.
Comment #6
jeremy commentedActually, looking closer at that section of the code, it works as designed. I'm committing a small change so that the score is actually calculated, but otherwise it will indeed mark content as spam if it needs to.
It seems that fixing #541950 has fixed this bug too -- I no longer have any spam slipping through my filters on KernelTrap. Hooray!
One final minor change to fix logging, then closing this bug:
http://drupal.org/project/cvs/11104