Recaptcha2Captcha doesn't handle response correctly
|Reported by:||Ryan J Ollos||Owned by:||Ryan J Ollos|
|Priority:||normal||Milestone:||plugin - spam-filter|
Description (last modified by )
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 the reCAPTCHA2 API returns JSON, but the response is handled as if it was a newline delimited string: plugins/1.0/spam-filter/tracspamfilter/captcha/recaptcha2.py@14567:82#L63.
The reCAPTCHA API returns string data, so the issue here may be that the code was copied from
Another issue I noticed while working in a dev environment is that the reCAPTCHA2 image is not rendered because the Submit button is placed inside the
div to be empty.