Edgewall Software
Modify

Opened 18 years ago

Closed 17 years ago

#5115 closed defect (duplicate)

Error when marking as spam

Reported by: Noah Kantrowitz Owned by: Matthew Good
Priority: normal Milestone:
Component: plugin/spamfilter Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I think the text I was marking contained some CJK characters, but I do not know exactly what. Unsure what version Alec is currently running (this is from trac-hacks), but I think its something from 0.10-stable.

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 398, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.4/site-packages/TracWebAdmin-0.1.2dev_r3580-py2.4.egg/webadmin/web_ui.py", line 109, in process_request
    path_info)
  File "build/bdist.linux-i686/egg/tracspamfilter/admin.py", line 91, in process_admin_request
  File "build/bdist.linux-i686/egg/tracspamfilter/admin.py", line 74, in render_admin_panel
  File "build/bdist.linux-i686/egg/tracspamfilter/admin.py", line 221, in _process_monitoring_panel
  File "build/bdist.linux-i686/egg/tracspamfilter/api.py", line 191, in train
  File "build/bdist.linux-i686/egg/tracspamfilter/filters/bayes.py", line 78, in train
  File "/usr/lib/python2.4/site-packages/spambayes-1.1a3-py2.4.egg/spambayes/hammie.py", line 170, in train
    self.bayes.learn(tokenize(msg), is_spam)
  File "/usr/lib/python2.4/site-packages/spambayes-1.1a3-py2.4.egg/spambayes/classifier.py", line 279, in learn
    self._add_msg(wordstream, is_spam)
  File "/usr/lib/python2.4/site-packages/spambayes-1.1a3-py2.4.egg/spambayes/classifier.py", line 381, in _add_msg
    record = self._wordinfoget(word)
  File "build/bdist.linux-i686/egg/tracspamfilter/filters/bayes.py", line 142, in _wordinfoget
  File "build/bdist.linux-i686/egg/tracspamfilter/filters/bayes.py", line 109, in _get_row
  File "/usr/lib/python2.4/site-packages/trac/db/util.py", line 50, in execute
    return self.cursor.execute(sql_escape_percent(sql), args)
  File "/usr/lib/python2.4/site-packages/trac/db/util.py", line 50, in execute
    return self.cursor.execute(sql_escape_percent(sql), args)
ProgrammingError: invalid byte sequence for encoding "UTF8": 0xe52031
HINT:  This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding".

Attachments (0)

Change History (2)

comment:1 by sid, 17 years ago

Tough to do much with this bug report. It would be very useful to know what the text was, and what version you were running.

comment:2 by Christian Boos, 17 years ago

Resolution: duplicate
Status: newclosed

Looks like it was some variant of the #4087 issue.

Modify Ticket

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