peoplemerge / recaptcha4j

Automatically exported from code.google.com/p/recaptcha4j
1 stars 1 forks source link

Recaptch image doesn't load after initial failure #16

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Use a Safari browser (v5.1.7) and trigger a recaptcha on a site that uses 
the java jar. 
2. Enter garbage into the recaptcha and try to proceed
3. This fails and you have to enter the data again. Though this time the image 
doesn't load on the screen due to a js error

What is the expected output? What do you see instead?

We should see the captcha image in the safari browser. We see no image due to a 
JS error on line 163 of recaptcha.js

What version of the product are you using? On what operating system?
0.08 - we use recaptcha4j-0.0.8.jar. Tested in a tomcat 6 server on both a 
windows 7 and Linux Centos 5.10

Please provide any additional information below.

This works on IE8 and above, Firefox and Chrome. We only see the issue in 
Safari and it is arising due to a null object in the javascript file 
recaptcha.js on line 163. The site uses the recaptcha4j-0.0.8.jar and when a 
captcha challenge is needed we retrieve this by calling the method 
createRecaptchaHtml on an instantiated ReCaptcha object. 

Original issue reported on code.google.com by rplo...@googlemail.com on 15 Apr 2014 at 7:57