Edgewall Software
Modify

Opened 14 years ago

Closed 14 years ago

Last modified 5 years ago

#9564 closed defect (worksforme)

"Internal Server Error: decoding Unicode is not supported" with ExpressionCaptcha

Reported by: kmilner@… Owned by: Dirk Stöcker
Priority: normal Milestone:
Component: plugin/spamfilter Version: 0.13dev
Severity: normal Keywords: unicode
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I am using Trac-0.13dev_r9995 with TracSpamFilter-0.3.3dev_r9994. When enabling ExpressionCaptcha, I keep getting prompted to solve a new expression, even when answering it correctly. The problem seems to be caused by this internal error in the trac logs:

2010-08-12 13:26:10,236 Trac[main] ERROR: Internal Server Error: 
Traceback (most recent call last):
  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 513, in _dispatch_request
    dispatcher.dispatch(req)
  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 200, in dispatch
    chosen_handler)
  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 346, in _pre_process_request
    chosen_handler = filter_.pre_process_request(req, chosen_handler)
  File "/usr/lib/python2.5/site-packages/TracSpamFilter-0.3.3dev_r9994-py2.5.egg/tracspamfilter/captcha/api.py", line 109, in pre_process_request
    if newhandler.match_request(req):
  File "build/bdist.linux-x86_64/egg/trac/wiki/intertrac.py", line 38, in match_request
    match = re.match(r'^/intertrac/(.*)', req.path_info)
  File "build/bdist.linux-x86_64/egg/trac/web/api.py", line 234, in path_info
    return unicode(path_info, 'utf-8')
TypeError: decoding Unicode is not supported

Attachments (0)

Change History (3)

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

What task do you do when entering captcha? Trac ticket, webpage, …

The error is actually caused by trac/wiki/intertrac.py in the trac task to continue the previous job. Either the call for this job is wrong (it only simulates Trac behaviour) or there is a bug elsewhere in that code which is triggered by captcha code.

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

Resolution: worksforme
Status: newclosed

No answer. Closing as irreproducible.

comment:3 by Remy Blank, 13 years ago

Milestone: plugin - spam-filter

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.