Edgewall Software
Modify

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#12493 closed defect (fixed)

AttributeError: 'int' object has no attribute 'verify_key'

Reported by: anonymous Owned by: Ryan J Ollos
Priority: normal Milestone: plugin - spam-filter
Component: plugin/spamfilter Version: 1.0.11
Severity: normal Keywords:
Cc: stoecker Branch:
Release Notes:

Fixed AttributeError on Apply Changes from External Services admin page when MollomFilterStrategy not available due to missing dependencies (regression in r14590).

API Changes:
Internal Changes:

Description

How to Reproduce

While doing a POST operation on /admin/spamfilter/external, Trac issued an internal error.

Press Apply changes on External services page with Mollom not installed.

Request parameters:

{u'__FORM_TOKEN': u'45825c2f75e65b9fe0c8311c',
 u'akismet_api_key': u'',
 u'akismet_api_url': u'rest.akismet.com/1.1/',
 u'blogspam_api_url': u'test.blogspam.net:9999',
 u'blogspam_skip_tests': u'45-wordcount.js,60-drone.js,80-sfs.js',
 u'botscout_api_key': u'',
 'cat_id': u'spamfilter',
 u'fspamlist_api_key': u'',
 'panel_id': u'external',
 'path_info': None,
 u'sfp_email': u'',
 u'sfph_mail': u'',
 u'skip_external': u'20',
 u'skip_externalham': u'30',
 u'stop_external': u'50',
 u'stop_externalham': u'50',
 u'stopforumspam_api_key': u'',
 u'train_external': u'on',
 u'use_external': u'on'}

User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:46.0) Gecko/20100101 Firefox/46.0

System Information

Trac 1.0.11
Genshi 0.7 (without speedups)
pysqlite 2.3.2
Python 2.5.6 (r256:88840, Mar 6 2016, 00:31:49)
[GCC 5.3.1 20160225]
setuptools 0.6c11
SQLite 3.11.0
jQuery 1.7.2
jQuery UI 1.8.21
jQuery Timepicker 1.0.1

Enabled Plugins

TracSpamFilter 1.0.9dev

Python Traceback

Traceback (most recent call last):
  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 562, in _dispatch_request
    dispatcher.dispatch(req)
  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 249, in dispatch
    resp = chosen_handler.process_request(req)
  File "build/bdist.linux-x86_64/egg/trac/admin/web_ui.py", line 119, in process_request
    path_info)
  File "/home/user/spam-filter/tracspamfilter/admin.py", line 370, in render_admin_panel
    verified_key = mollom.verify_key(req, mollom_api_url,
AttributeError: 'int' object has no attribute 'verify_key'

Attachments (0)

Change History (2)

comment:1 by Ryan J Ollos, 9 years ago

Release Notes: modified (diff)
Resolution: fixed
Status: assignedclosed

Fixed in [14826].

comment:2 by Jun Omae, 9 years ago

#12506 was closed as duplicate.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Ryan J Ollos 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.