Modify ↓
Opened 5 years ago
Closed 5 years ago
#13292 closed defect (fixed)
Log has "IndexError: list index out of range" for requests to /captcha
Reported by: | Ryan J Ollos | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Milestone: | plugin - spam-filter |
Component: | plugin/spamfilter | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Fix |
Description
2020-05-08 05:32:12,772 Trac[main] ERROR: [49.196.17.54] Internal Server Error: <RequestWithSession "POST '/captcha'">, referrer 'https://trac-hacks.org/captcha' Traceback (most recent call last): File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/trac/web/main.py", line 647, in _dispatch_request dispatcher.dispatch(req) File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/trac/web/main.py", line 215, in dispatch chosen_handler = self._pre_process_request(req, chosen_handler) File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/trac/web/main.py", line 455, in _pre_process_request chosen_handler = filter_.pre_process_request(req, chosen_handler) File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/tracspamfilter/captcha/api.py", line 174, in pre_process_request valid = self.captcha.verify_captcha(req) File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/tracspamfilter/captcha/keycaptcha.py", line 84, in verify_captcha s = hashlib.md5('accept' + val[1] + self.private_key + IndexError: list index out of range
Attachments (0)
Note:
See TracTickets
for help on using tickets.
Keycaptcha response example:
After splitting on
|
, the length if 5: plugins/1.2/spam-filter/tracspamfilter/captcha/keycaptcha.py@17014:83#L76