Edgewall Software

Opened 8 years ago

Last modified 8 years ago

#12379 closed defect

Recaptcha2Captcha doesn't handle response correctly — at Initial Version

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

Description

Seeing the following error with Recaptcha2:

2016-03-02 19:39:42,444 Trac[recaptcha2] WARNING: reCAPTCHA returned error:   "success": true,

The problem is that Recaptcha2 return JSON, but the data is handled as if it was a newline delimited string: plugins/1.0/spam-filter/tracspamfilter/captcha/recaptcha2.py@14567:82#L63.

Recaptcha returns string data, so the issue here may be that the code was copied from tracspamfilter.captcha.recaptcha.

Another issue I noticed while working in a dev environment is that Recaptcha2 is not rendered because the Submit button is placed inside the div where the captcha is rendered.

Patch forthcoming.

Change History (1)

by Ryan J Ollos, 8 years ago

Note: See TracTickets for help on using tickets.