Comments (9)
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.
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.
any plan to fix this issue?
Original comment by [email protected]
on 7 Dec 2012 at 10:09
from kaptcha.
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.
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.
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.
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.
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.
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)
- Remove pixels-jar from distribution HOT 1
- Enhancement for Wiki documentation HOT 1
- image with wrong code HOT 8
- session key is previous image - don't think it is KAPTCHA; looking for direction HOT 1
- Problem with Can't read the image? Click it to get a new one HOT 3
- Issues with the test environment HOT 1
- Can't Re-genarate image HOT 1
- java.lang.NoSuchMethodError: com.jhlabs.image.RippleFilter.setXAmplitude HOT 1
- unhandled exception leads to java heap dump (Compiled_method=com/jhlabs/image/TransformFilter.filter(Ljava/awt/image/BufferedImage;Ljava/awt/image/BufferedImage;)Ljava/awt/image/BufferedImage;) HOT 1
- The package is not available from any of the existing maven repositories HOT 1
- java.lang.IllegalStateException: getWriter() has already been called for this response HOT 1
- Maven repo HOT 2
- Kaptcha is not validated in Safari Browser
- the kaptcha image's font border can not be customrized. HOT 3
- It does not work well in Firefox 23.0.1 HOT 12
- config no working when use @WebServlet annotation HOT 6
- Kaptcha is not validated in Google Chrome browser HOT 1
- The image is not showing after uploading the application on amazon ec2 instance HOT 1
- Java Compatibility HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kaptcha.