Edgewall Software

Ticket #5115 (closed defect: duplicate)

Opened 18 months ago

Last modified 8 months ago

Error when marking as spam

Reported by: nkantrowitz Owned by: mgood
Priority: normal Milestone:
Component: plugin/spamfilter Version:
Severity: normal Keywords:
Cc:

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

Change History

Changed 8 months ago by sid

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.

Changed 8 months ago by cboos

  • status changed from new to closed
  • resolution set to duplicate

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

Add/Change #5115 (Error when marking as spam)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.