#6918 Akismet filter error in email handling

unreleased
open
nobody
None
General
nobody
2015-02-16
2013-11-26
No

The smtp_server process which handles incoming email, has this error when the akismet filter is enabled. There may be a similar issue with mollom spam filtering (I haven't checked).

smtp_server apparently doesn't set up a full (fake) web task like taskd does. But in this situation a different IP addr should be used anyway (try to find bottom-most non-internal IP address in Received headers?)

17:50:57,447 ERROR [allura.lib.spam] Error calling exceptionless(check)(args=(u'test message content',), kwargs={'user': <User username=u'brondsem2' ...>}): No object (name: request) has been registered for this thread
Traceback (most recent call last):
  File "/var/local/allura/Allura/allura/lib/helpers.py", line 938, in inner
    return fun(*args, **kwargs)
  File "/var/local/allura/Allura/allura/lib/spam/akismetfilter.py", line 81, in check
    content_type=content_type),
  File "/var/local/allura/Allura/allura/lib/spam/akismetfilter.py", line 66, in get_data
    user_ip = request.headers.get('X_FORWARDED_FOR', request.remote_addr)
  File "/var/local/env-allura/lib/python2.7/site-packages/Paste-1.7.5.1-py2.7.egg/paste/registry.py", line 137, in __getattr__
    return getattr(self._current_obj(), attr)
  File "/var/local/env-allura/lib/python2.7/site-packages/Paste-1.7.5.1-py2.7.egg/paste/registry.py", line 197, in _current_obj
    'thread' % self.____name__)
TypeError: No object (name: request) has been registered for this thread

Discussion


Log in to post a comment.