Edgewall Software
Modify

Opened 16 years ago

Closed 16 years ago

#7144 closed defect (fixed)

Error when enabling the captcha SpamFilter options

Reported by: anonymous Owned by: Christian Boos
Priority: normal Milestone: not applicable
Component: plugin/spamfilter Version: 0.11b2
Severity: blocker Keywords:
Cc: shendric@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christian Boos)

After installing spam-filter-captcha r6871, the following error occurs when enabling either of the captch options from webadmin:

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/Trac-0.11b2-py2.4.egg/trac/web/api.py", line 339, in send_error
    'text/html')
  File "/usr/lib/python2.4/site-packages/Trac-0.11b2-py2.4.egg/trac/web/chrome.py", line 672, in render_template
    template = self.load_template(filename, method=method)
  File "/usr/lib/python2.4/site-packages/Trac-0.11b2-py2.4.egg/trac/web/chrome.py", line 648, in load_template
    self.templates = TemplateLoader(self.get_all_templates_dirs(),
  File "/usr/lib/python2.4/site-packages/Trac-0.11b2-py2.4.egg/trac/web/chrome.py", line 402, in get_all_templates_dirs
    dirs += provider.get_templates_dirs()
  File "build/bdist.linux-i686/egg/tracspamfilter/captcha/api.py", line 100, in get_templates_dirs
  File "/usr/lib/python2.4/site-packages/setuptools-0.6c8-py2.4.egg/pkg_resources.py", line 840, in resource_filename
    return get_provider(package_or_requirement).get_resource_filename(
  File "/usr/lib/python2.4/site-packages/setuptools-0.6c8-py2.4.egg/pkg_resources.py", line 1311, in get_resource_filename
    return self._extract_resource(manager, zip_path)
  File "/usr/lib/python2.4/site-packages/setuptools-0.6c8-py2.4.egg/pkg_resources.py", line 1322, in _extract_resource
    zip_stat = self.zipinfo[zip_path]
KeyError: 'tracspamfilter/captcha/templates'

Attachments (1)

verify_captcha.html (719 bytes ) - added by shendric@… 16 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 by shendric@…, 16 years ago

Cc: shendric@… added

comment:2 by Christian Boos, 16 years ago

Description: modified (diff)
Keywords: helpwanted added
Milestone: not applicable

by shendric@…, 16 years ago

Attachment: verify_captcha.html added

comment:3 by shendric@…, 16 years ago

The translated file is attached. Including this file in the source fixes the error.

comment:4 by shendric@…, 16 years ago

(However, when using trac with this option enabled, I never see the verification form — I only get that something is spam. Should that be a different ticket?)

comment:5 by Christian Boos, 16 years ago

Owner: changed from Matthew Good to Christian Boos

Try again with r6874, some more changes were needed.

comment:6 by Christian Boos, 16 years ago

Keywords: helpwanted removed
Resolution: fixed
Status: newclosed

Also, I've got this working when I realized I had to change the reject handler:

[spam-filter]
...
reject_handler = CaptchaSystem

Expect some rough edges, as I didn't test that thoroughly.

For the "image" style, you need to have PIL installed (but I've not tried that one so far).

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.