Edgewall Software
Modify

Opened 14 years ago

Closed 14 years ago

#9827 closed defect (fixed)

TypeError: int() argument must be a string or a number

Reported by: knarf@… Owned by: Dirk Stöcker
Priority: normal Milestone: plugin - spam-filter
Component: plugin/spamfilter Version: 0.12
Severity: normal Keywords: spamfilter
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

How to Reproduce

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

(please provide additional details here)

Request parameters:

{'CaptchaSystem_karmapoints': u'10',
 'ExternalLinksFilterStrategy_karmapoints': u'2',
 'RegexFilterStrategy_karmapoints': u'5',
 'SessionFilterStrategy_karmapoints': u'9',
 '__FORM_TOKEN': u'54996079d084cb23b87aa845',
 'attachment_karma': u'1',
 'cat_id': u'spamfilter',
 'min_karma': u'2',
 'panel_id': u'config',
 'path_info': None,
 'trust_authenticated': u'on'}

User agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.19) Gecko/2010102809 Iceweasel/3.0.6 (Debian-3.0.6-3)

System Information

Trac 0.12
Babel 0.9.5
Genshi 0.6
Mercurial 1.6.4
mod_python 3.2.8
pysqlite 2.3.3
Python 2.4.3 (#1, Sep 8 2010, 11:37:47)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-48)]
setuptools 0.6c12
SQLite 3.3.6
Subversion 1.6.13 (r1002816)
jQuery 1.4.2

Enabled Plugins

LDAPAuthNZPlugin 1.0
TracAccountManager 0.2.1dev
TracMercurial 0.12.0.23dev
TracSpamFilter 0.4.1dev-r10314

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 513, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 235, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.4/site-packages/trac/admin/web_ui.py", line 116, in process_request
    path_info)
  File "/usr/lib/python2.4/site-packages/TracSpamFilter-0.4.1dev_r10314-py2.4.egg/tracspamfilter/admin.py", line 59, in render_admin_panel
    if self._process_config_panel(req):
  File "/usr/lib/python2.4/site-packages/TracSpamFilter-0.4.1dev_r10314-py2.4.egg/tracspamfilter/admin.py", line 130, in _process_config_panel
    authenticated_karma = int(req.args.get('authenticated_karma'))
TypeError: int() argument must be a string or a number

Attachments (0)

Change History (2)

comment:1 by Remy Blank, 14 years ago

Component: web frontendplugin/spamfilter
Milestone: plugin - spam-filter
Owner: set to Dirk Stöcker

comment:2 by Dirk Stöcker, 14 years ago

Resolution: fixed
Status: newclosed

Fixed in r10317.

Modify Ticket

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