Giter VIP home page Giter VIP logo

Comments (9)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
Forgot to mention, the requests are handled in two different threads. That's 
why sometimes the first one is cut off and sometimes the second one.

Original comment by [email protected] on 6 Jun 2012 at 2:09

from kaptcha.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
I am having the same problema. I mean, the captcha is also requested twice in 
FireFox 14.0.1. In my case, in IE9 and Chrome 21.0 works fine.

Original comment by [email protected] on 13 Aug 2012 at 5:56

from kaptcha.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
any plan to fix this issue?

Original comment by [email protected] on 7 Dec 2012 at 10:09

from kaptcha.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
As soon as there is a valid suggestion on how to fix it, I'll apply it.

Original comment by [email protected] on 7 Dec 2012 at 10:13

from kaptcha.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
Well, I said: "You should set the session attribute after the image has been 
written". I think the code should go like this:

ImageIO.write(bi, "jpg", out);
req.getSession().setAttribute(this.sessionKeyValue, capText);                
req.getSession().setAttribute(this.sessionKeyDateValue, new Date()); 

It's simple. :)

Original comment by [email protected] on 22 Dec 2012 at 10:04

from kaptcha.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
Right, but that doesn't explain why IE is requesting the image 2x. That is the 
core of the issue and that is the part that needs to be resolved.

Original comment by [email protected] on 22 Dec 2012 at 5:46

from kaptcha.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
Well, I think the core issue is that your code does not handle potential 
exceptions and leaves session attributes set incorrectly. :(

Original comment by [email protected] on 25 Dec 2012 at 7:02

from kaptcha.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
now i see your point, but i'd like to get an understanding of why ie is causing 
the server to throw that exception.

Original comment by [email protected] on 26 Dec 2012 at 11:50

from kaptcha.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
This issue was closed by revision r138.

Original comment by [email protected] on 26 Dec 2012 at 11:58

  • Changed state: Fixed

from kaptcha.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.