pk1986 / recaptcha4j

Automatically exported from code.google.com/p/recaptcha4j
0 stars 0 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

GoogleCodeExporter commented 9 years ago
I inherited a project that depended on this library.  When we needed to turn on 
the feature, it didn't work.  So with a site on fire, I clicked the "Export to 
Github" to port it to 2.0.

Want to help fix issues they've seen in this generation help social code 
open-source?  Check out my first commits 
https://github.com/peoplemerge/recaptcha4j (tests currently broken so not safe 
for prod yet... unless your site is on fire like mine was)

Original comment by d...@delicious.com on 24 Mar 2015 at 5:53