qingdengyue / kaptcha Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/kaptcha
License: Other
Automatically exported from code.google.com/p/kaptcha
License: Other
What steps will reproduce the problem?
1. Attempts to generate captcha image result in the following exception:
org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet Captcha threw exception
java.lang.NoSuchMethodError: com.jhlabs.image.RippleFilter.setXAmplitude(F)V
at
com.google.code.kaptcha.impl.WaterRipple.getDistortedImage(WaterRipple.java:34)
at
com.google.code.kaptcha.impl.DefaultKaptcha.createImage(DefaultKaptcha.java:44)
at
com.google.code.kaptcha.servlet.KaptchaServlet.doGet(KaptchaServlet.java:84)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:2
33)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:1
75)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109
)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Pr
otocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
What is the expected output? What do you see instead?
No image is getting generated.
What version of the product are you using? On what operating system?
WinXP SP2
Tomcat 6.0
JDK 6
kaptcha 2.3
Please provide any additional information below.
jcapture is working fine on the same system
thanks.
Original issue reported on code.google.com by [email protected]
on 2 Aug 2008 at 6:55
Hi,
I have a question about the Apache License you have chosen for the Kaptcha
project. Since this project derives from simplecaptcha, and simplecaptcha
has no license at all (?), are you sure you can use Apache License 2.0 for
Kaptcha?
Perhaps you can tell, why you could choose Apache License 2.0 (e.g.
confirmation from simplecaptcha developer).
Thank you in advance.
Markus
Original issue reported on code.google.com by [email protected]
on 8 Jan 2008 at 10:48
Jon, attached is a patch of the refactored simplecaptcha code.
I've made sure that it builds fine, but I haven't verified it with
retroweaver its jar doesn't seem to exist in the trunk.
Change notes:
- Added lots of unit tests. I've made sure that they all pass, I used
Eclipse to run the tests. Image related tests writes the image files to
_eclipse directory.
- Reformatted the source code based on cinchblog's formatting style.
- Removed unnecessary inheritance (DefaultTextCreator extended by
FiveLetterFirstNameTextCreator & ChineseTextProducer) and interface (Engine).
- Introduced Configurable interface for classes that can be configured via
the properties file. This allows classes which don't use anything from the
properties (like FiveLetterFirstNameTextCreator & ChineseTextProducer) to
ignore the properties altogether.
- Moved all configuration properties handling to ConfigManager and
ConfigHelper, this used to be scattered across the Helper ThingFactory and
some model classes. ConfigManager is responsible for specifying the
property names and default values. ConfigHelper is responsible for the
actual value parsing.
- Introduced ConfigException when there's an invalid configuration values.
I think it's better to alert the client code a.s.a.p in such event, rather
than quietly returns the default values for any error.
- Changed Producer's createImage to really create the BufferedImage and not
muck around with OutputStream. I moved the JPEG file creation to
KaptchaServlet instead.
I kept the original package & class names even though some of them are
inconsistent (e.g. TextProducer - DefaultTextCreator). This is to avoid any
change to client properties configuration.
A short guide when client code wants to have specific implementations:
- implement the relevant interface (TextProducer, NoiseProducer, etc)
- implement Configurable interface, if additional configuration values are
needed. Properties are available from configManager.getProperties()
- specify the full class name in the properties / web.xml params.
I didn't change SimpleKaptcha since it doesn't use the model classes. I
also didn't clean up KaptchaServlet code just in case latchkey already
started making some changes there (noticed the new response headers on
r34). I'd probably suggest creating PNG file instead of JPEG for file size
reason.
Be careful with ChineseTextProducer class. I was having problem with
keeping the file encoding at might have lost the Chinese characters on
Eclipse when I checked out from svn. If this patch got in, please make sure
that the Chinese characters are kept.
Original issue reported on code.google.com by cliffano
on 3 Jan 2008 at 1:41
Attachments:
How can I use the kaptcha jar if I'm using maven?
Is there a POM.xml for the kapatha project?
Thanks.
Original issue reported on code.google.com by [email protected]
on 30 Mar 2008 at 7:11
What steps will reproduce the problem?
1. I config the web.xml to set image width and height to 80 and 30,the
font size is set to 30.But I found that,the text rendered is to difficult
to read.So I want to disable the WaterRipple effect,maybe then it will be
clearer.
Original issue reported on code.google.com by [email protected]
on 22 Oct 2008 at 1:09
What steps will reproduce the problem?
1. Attempts to generate captcha image result in the following exception:
org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet Captcha threw exception
java.lang.NoSuchMethodError: com.jhlabs.image.RippleFilter.setXAmplitude(F)V
at
com.google.code.kaptcha.impl.WaterRipple.getDistortedImage(WaterRipple.java:34)
at
com.google.code.kaptcha.impl.DefaultKaptcha.createImage(DefaultKaptcha.java:44)
at
com.google.code.kaptcha.servlet.KaptchaServlet.doGet(KaptchaServlet.java:84)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:2
33)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:1
75)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109
)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Pr
otocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
What is the expected output? What do you see instead?
No image is getting generated.
What version of the product are you using? On what operating system?
WinXP SP2
Tomcat 6.0
JDK 6
kaptcha 2.3
Please provide any additional information below.
jcapture is working fine on the same system
thanks.
Original issue reported on code.google.com by [email protected]
on 2 Aug 2008 at 6:55
kpatcha.border,
kpatcha.border.color, and
kpatcha.border.thickness
should be:
kaptcha.border,
kaptcha.border.color, and
kaptcha.border.thickness
"p" and "a" of "kaptcha" are swapped.
Original issue reported on code.google.com by [email protected]
on 30 Oct 2007 at 11:46
What steps will reproduce the problem?
1. deploy web application with Weblogic on Sun Solaris's Operating System
What is the expected output? What do you see instead?
>>the captcha image didn't show.
Please use labels and text to provide additional information.
>>We had tried to deploy web application with Tomcat & Weblogic on
Windows's Operating System. The Web Application worked smoothly without
problems.
Is the Kaptcha supported only on Windows environment?
Original issue reported on code.google.com by [email protected]
on 11 Jan 2010 at 4:35
try{
out.flush();
}finally{
out.close();
}
The "close" method should not be called.After the method been called,the
cookie can not be used.
By the way,the ServletOutputStream instance will be closed by container
automatically.
Original issue reported on code.google.com by [email protected]
on 22 Nov 2009 at 11:04
ConfigParameter wiki page missed out word renderer
kaptcha.word.impl - The word renderer implementation. Defaults to
com.google.code.kaptcha.text.impl.DefaultWordRenderer
Original issue reported on code.google.com by cliffano
on 3 Jan 2008 at 1:44
What steps will reproduce the problem?
1. Downloaded kaptcha-2.3.zip file
2. Got kaptcha-2.3.jar file from zip file and integrated.
3. Getting runtime error as follows :
bad class file:
C:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserve
r__appsdi
r_cititest_war_cititest\jarfiles\WEB-INF\lib\kaptcha-2.3.jar
(com/google/code/kaptcha/Constants.class
)
class file has wrong version 49.0, should be 48.0
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
kaptcha-2.3.zip, windows XP
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 15 Sep 2008 at 7:16
Classes from com.sun.image.codec.jpeg.* is deprecated
[javac]
D:\dev\eclipse-workspace\kaptcha\src\java\com\google\code\kaptcha\se
rvlet\KaptchaServlet.java:18: warning: com.sun.image.codec.jpeg.JPEGCodec
is Sun
proprietary API and may be removed in a future release
[javac] import com.sun.image.codec.jpeg.JPEGCodec;
[javac] ^
Attached is a patch that replace them with ImageIO to generate the JPG image.
Original issue reported on code.google.com by cliffano
on 11 Mar 2008 at 11:51
Attachments:
It would be nice to have it at the Maven central repository.
Thanks!
Original issue reported on code.google.com by monteiro.cristiano
on 22 Jun 2009 at 5:16
What steps will reproduce the problem?
I have a kaptcha which i have defined in my web.xml as
<servlet-mapping>
<servlet-name>Kaptcha</servlet-name>
<url-pattern>/kaptcha.jpg</url-pattern>
</servlet-mapping>
In hosted mode where the module is inherited ( no explicit web.xml
definition ), code like
Image img = new Image("/kaptcha.jpg");
works fine. But when i deploy my app, the code will not work, but code
below works...
Image img = new Image("kaptcha.jpg");
I dont want to change code just for the app server build alone. Can
anybody help why this would happen ? Something to do with how the url
pattern is formed in hosted mode...any ideas ?
What is the expected output? What do you see instead?
I dont see the kaptcha when trying to use the same url access from an Image
in hosted and server mode.
What version of the product are you using? On what operating system?
kaptcha 2.2
gwt 1.4
win xp pro
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 3 Dec 2008 at 2:04
Loading of captcha image is very slow.
What version of the product are you using? On what operating system?
2.2. Win xp.
Please provide any additional information below.
I use GWT and I have a login dialog which has an Image pointing to
kaptcha.jpg. I notice that the dialog completely loads and the captcha
loads much later...( 5-10 secs later ). Is there any config to speed this
up or load it at servlet startup time ?
Thx
-- pady
Original issue reported on code.google.com by [email protected]
on 22 May 2008 at 6:02
What steps will reproduce the problem?
1. Deployed the Kaptcha 2.3 application on Unix box and image is not
showing up.
2. Image path given as Kaptcha.jpg on the jsp and web.xml in servlet
mapping in
<servlet-mapping>
<servlet-name>Kaptcha</servlet-name>
<url-pattern>/Kaptcha.jpg</url-pattern>
</servlet-mapping>
3. Working fine on Windows box and Image not displaying in Unix box.
Please get back on this issue as early as possible. We are in process
moving to QA server.
Thanks.
Original issue reported on code.google.com by [email protected]
on 26 Feb 2009 at 3:27
Attached is a patch for ShadowGimpy config change, seems to be accidentally
missed out in r40 .
Original issue reported on code.google.com by cliffano
on 9 Mar 2008 at 10:41
Attached is a patch to add unit test classes.
Verified using junit3 on Eclipse.
Original issue reported on code.google.com by cliffano
on 9 Mar 2008 at 10:04
Attachments:
What steps will reproduce the problem?
1. Allow configuration for default space between letters.
2.
3.
What is the expected output? What do you see instead?
I have created a simple WordRenderer which sets the space as 10 for my use
( instead of 2 which is the default ). But it will be easy if this were a
config setting.
What version of the product are you using? On what operating system?
1.3
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 17 Dec 2009 at 6:51
[deleted issue]
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
I'm using kaptcha-2.3.jar in windows vista + internet explorer 8
Please provide any additional information below.
I'm following all the steps but kaptcha only works in mozilla firefox, in
IE or chrome the code's:
req.getSession().getAttribute(com.google.code.kaptcha.Constants.KAPTCHA_SESSION_
KEY)
return is incompatible with the kaptcha.jpg letters. Can you help me ?
PS: The problem is only in IE or chrome....
Regards,
Original issue reported on code.google.com by [email protected]
on 4 Mar 2010 at 5:48
Attachments:
What steps will reproduce the problem?
1. try viewing a page that uses KAPTCHA in a fresh system , that has not
seen any captcha yet.
2. I am getting a server error in IE. its a general server error 500
What version of the product are you using? On what operating system?
the latest one Version 2.3
Original issue reported on code.google.com by [email protected]
on 9 Feb 2009 at 7:44
What steps will reproduce the problem?
<servlet>
<servlet-name>Kaptcha</servlet-name>
<servlet-
class>com.google.code.kaptcha.servlet.KaptchaServlet</servlet-class>
<init-param>
<param-name>kaptcha.textproducer.char.length</param-name>
<param-value>4</param-value>
<param-name>kaptcha.textproducer.font.size</param-name>
<param-value>30</param-value>
<param-name>kaptcha.textproducer.font.color</param-name>
<param-value>red</param-value>
<param-name>kaptcha.noise.color</param-name>
<param-value>green</param-value>
</init-param>
</servlet>
Original issue reported on code.google.com by [email protected]
on 20 Dec 2008 at 8:51
Hello
I'm trying to use Kaptcha in an application I'm developing in NetBeans
using Tomcat. I've done everything as per the instructions such as putting
in the reference in web.xml, adding to the form instructions in the JSP:
<form action = "<c:url value = '/createCommunity' />" method = "post">
<img src="/kaptcha" /> <input type="text" name="kaptcha" value="" />
</form>
And placing the relevant code in the servlet which handles the form. I've
also added the Kaptcha jar file to the projects lib directory.
But I get nothing at runtime.
Do you have any idea why?
Though when I run:
http://localhost:8080/kaptcha/KaptchaExample.jsp
Everything is fine.
Thanks
Martin O'Shea.
Original issue reported on code.google.com by [email protected]
on 27 Aug 2008 at 8:26
What steps will reproduce the problem?
1. Just follow installation steps on Linus running Tomcat
2.
3.
What is the expected output? What do you see instead?
Expect to see kaptcha image - just see cross where it should be.
What version of the product are you using? On what operating system?
Latest. Linux.
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 9 Nov 2007 at 12:23
What steps will reproduce the problem?
1. http://code.google.com/p/kaptcha/wiki/HowToUse
2. Under Extra column
3. jQuery code
What is the expected output? What do you see instead?
$('#kaptchaImage').click(function () { $(this).attr('src', '/Kaptcha.jpg?
' + Math.floor(Math.random()*100) ); })
Instead,
$('#kaptchaImage').click(function () { $(this).attr('src', '/kaptcha?' +
Math.floor(Math.random()*100) ); })
What version of the product are you using? On what operating system?
Google code Kaptcha
Please provide any additional information below.
Extra effect on refreshing the image, you can fadeIn when click on it.
$('#kaptchaImage').click(function () {
$(this)
.hide()
.attr('src', '/Kaptcha.jpg?' + Math.floor(Math.random()*100) )
.fadeIn();
})
Original issue reported on code.google.com by [email protected]
on 17 Feb 2009 at 12:46
What steps will reproduce the problem?
1. Kaptcha code implemented and started the HP JVM 1.4.2.13 in headless
mode in the startup script of BEA Weblogic server, running on HP UX.
2. When calling the servlet, JVM crashes
3. Kaptcha works on Sun JVM and crashes on HP JVM.
Can you specify any classes in the Kaptcha code that is causing the JVM
crash.
What is the expected output? What do you see instead?
JVM crashes when JVM is started in headless mode.
What version of the product are you using? On what operating system?
Using kaptcha-2[1].3.zip on HP UX.
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 15 Jan 2009 at 2:06
Guys,
You need to upload your library to Maven, there are several developers
interested in use your stuff, but for Maven users it's a problem, since they
will
have to manually add the library to the local repository loosing all the
possibility to have an automatic deployement.
If you are busy, I offer my help to get your stuff there, let me know.
Cheers,
Marcus
Original issue reported on code.google.com by [email protected]
on 13 Mar 2010 at 12:24
What steps will reproduce the problem?
1. Get kaptcha up and running :-)
2. Configure a simple textproducer char string for the DefaultTextCreator,
i.e. use the following parameter:
kaptcha.textproducer.char.string="abc"
What is the expected output? What do you see instead?
Captcha image containing a random sequence of the configured characters.
Instead, only the characters "b" and "c" appear.
What version of the product are you using? On what operating system?
kaptcha-2.3-jdk14.jar on Windows XP (will happen on any environment as the
error is in the source code, see below)
Please provide any additional information below.
Take a look at the getText method:
int length = getConfig().getTextProducerCharLength();
char[] chars = getConfig().getTextProducerCharString();
int randomContext = chars.length - 1;
Random rand = new Random();
StringBuffer text = new StringBuffer();
for (int i = 0; i < length; i++)
{
text.append(chars[rand.nextInt(randomContext) + 1]);
}
return text.toString();
Taken from the API doc of nextInt(n): "Returns a pseudorandom, uniformly
distributed int value between 0 (inclusive) and the specified value
(exclusive)."
So nextInt(randomContext) generates a number from 0 to length-2 (both
including), hence nextInt(randomContext)+1 is a number from 1 to length-1.
Therefore the first char is always missed. The code should instead simply
look like this:
int length = getConfig().getTextProducerCharLength();
char[] chars = getConfig().getTextProducerCharString();
Random rand = new Random();
StringBuffer text = new StringBuffer();
for (int i = 0; i < length; i++)
{
text.append(chars[rand.nextInt(length)]);
}
return text.toString();
I have added this as a patch file if that is needed for a simple change
like this :-)
Original issue reported on code.google.com by [email protected]
on 9 Feb 2009 at 5:36
Attachments:
remove references to SimpleKaptcha servlet from example web.xml
Original issue reported on code.google.com by [email protected]
on 18 Sep 2008 at 8:09
What steps will reproduce the problem?
1. I have downloaded the kaptcha-2.3.zip and opened it.and placed the
Kaptcha.war file in my webapps folder of Tomcat server
When i run the Kaptcha project its working fine.
when i place the KaptchaExample.jsp in /jsp/ folder of the
applcation ,kaptcha is not showing any images or session value
How to solve this,my application requires kaptcha inside the subfolders
Thanks
Sreenivas
Original issue reported on code.google.com by [email protected]
on 16 Sep 2008 at 6:06
What steps will reproduce the problem?
1. We have copied the kaptcha-2.3-jdk14.jar in WEB-INF/lib folder
2. Made the entry in web.xml
3. Called the servlet in our form
What is the expected output? What do you see instead?
1. We have first tried this in our local environment and it was rendering
appropriately.
2. The same steps in our development environment, is not working.
3. We are using BEA Weblogic App server 8.1.6 and JDK 1.4.
Please help.
Artz/-
Original issue reported on code.google.com by [email protected]
on 8 Jan 2009 at 10:19
Hi, as I stated in [0], I want to package kaptcha for Debian. Anyone
wanting to use it from source would greatly thank you if you could provide
source tarballs/zips when you release. I have checked all the jar/war files
included in the latest release and there's no trace of source code there.
[0]: http://code.google.com/p/kaptcha/issues/detail?id=7&can=1
Original issue reported on code.google.com by [email protected]
on 24 Apr 2008 at 12:27
The session key doesn't match the kaptcha image.
It always has an additional character at the end, which is not present on
the corresponding captcha image.
For example: if the captcha image is "abcde", you don't get a session key
value of "abcde" but instead something like "abcde1" or "abcdef" (or
anything else... it is random)
I'm using the latest version of the Kaptcha library (2.0?), which I just
downloaded and deployed on a Tomcat server (v5.5.25) running on a Linux box
with JDK v1.5.0_13.
Original issue reported on code.google.com by [email protected]
on 13 Feb 2008 at 10:50
Below is the web.xml of opencms
<web-app>
<display-name>OpenCms</display-name>
<description>
OpenCms is an open source content management solution.
See details on http://www.opencms.org/
</description>
<servlet>
<servlet-name>OpenCmsServlet</servlet-name>
<description>
The main servlet that handles all requests to the OpenCms VFS.
</description>
<servlet-class>com.opencms.core.OpenCmsHttpServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>OpenCmsServlet</servlet-name>
<url-pattern>/en/*</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>Kaptcha</servlet-name>
<servlet-class>com.google.code.kaptcha.servlet.KaptchaServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Kaptcha</servlet-name>
<url-pattern>/kaptcha/Kaptcha.jpg</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>30</session-timeout> <!-- 30 minutes -->
</session-config>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
</welcome-file-list>
<taglib>
<taglib-uri>http://www.opencms.org/taglib/cms</taglib-uri>
<taglib-location>/WEB-INF/opencms.tld</taglib-location>
</taglib>
<security-constraint>
<web-resource-collection>
<web-resource-name>Redirect http</web-resource-name>
<url-pattern>/en/system/login/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
</web-app>
JSP is exactly same as KaptchaExample.jsp
Using OpenCMS 5
kaptcha-2.3-jdk14.jar deployed in web-inf/lib
Running on j2sdk1.4.2_15
Image is showing up and randomly generating, session.getAttribute
constantly returning null.
Desperately needed help, thanks!
Original issue reported on code.google.com by [email protected]
on 19 Nov 2008 at 9:09
I was thinking it might be cool to allow for much more randomized CAPTCHAs.
For example, multiple fonts at once and most importantly random
"obscurificators" from instance to instance.
When I get a chance I'll take a better look at the code and these are the
types of (simple) things I would like to add.
Original issue reported on code.google.com by [email protected]
on 9 Aug 2008 at 4:56
According to your example (http://code.google.com/p/kaptcha/wiki/HowToUse)
it seems that multiple guesses can be made on a single CAPTCHA image.
It could be beneficial to assign a new totally random code to the
KAPTCHA_SESSION_KEY on failure, forcing the "user" (bot?) to now guess a
completely random string with no help, or consider at a new image.
This is likely out of the scope of the project, but also recording the time
when the CAPTCHA image was made and enforcing a maximum time to solve it
could be good.
Original issue reported on code.google.com by [email protected]
on 9 Aug 2008 at 4:53
Hi,
how do i integreate your application with an existing JAVA based CMS like
OPENCMS? thanks
Original issue reported on code.google.com by [email protected]
on 15 May 2007 at 10:29
What steps will reproduce the problem?
1. Installed sample on below mentioned environment.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
kaptcha v2.3
Fedora 8
Tomcat 6
IcedTea Java 1.7
Please provide any additional information below.
I suspect the issue has something with either IcedTea Java or Fedora. Is
there any additional logging I can turn on to debug?
Thanks!
Original issue reported on code.google.com by [email protected]
on 30 Dec 2009 at 1:07
<form action="submit.action">
<img src="/kaptcha" /> <input type="text" name="kaptcha"
value="" />
</form>
didn't generate captcha image, but when i did
<img src="kaptcha" />
it worked.
Original issue reported on code.google.com by [email protected]
on 14 Aug 2008 at 10:14
Attached is a patch that replaces imaging jar with pixels jar (
pixels-core-2.1.2-SNAPSHOT from
https://pixels.dev.java.net/servlets/ProjectDocumentList).
I had to tweak some of the filter settings to make the output similar to
the original ones w/ imaging.
One thing to note is that WaterFilter in pixels jar really produces water
effect in WaterRipple class, while it wasn't visible at all with the
original code from SimpleCaptcha. I set WaterFilter wavelength to 2 to make
sure the texts are still easily readable, specially with lowercase
characters. Anything greater than 2 no longer produce readable characters.
Since default Kaptcha configuration uses WaterRipple as the default
obscufirator implementation, the new WaterFilter in pixels cause an extra
water effect on the default generated captcha.
If you want to keep the default captcha consistent to the original one w/
imaging jar, I suggest to remove the use of WaterFilter in WaterRipple
class, simply rename the class to RippleGimpy and make it the default
obscufirator in Config. I can submit another patch to reflect this changes
if you prefer it, let me know.
-- the tabs are preserved in the patch, there are some lines in xml files
which might look identical, but they are actualy trailing-whitespaces-trimmed
Original issue reported on code.google.com by cliffano
on 16 May 2008 at 2:18
Attachments:
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
The kaptcha doesn't work in IE8.. The generated code is different when I
debug..
request.getSession().getAttribute(Constants.KAPTCHA_SESSION_KEY)
Original issue reported on code.google.com by [email protected]
on 6 Mar 2010 at 8:36
Hi,
I copied kaptcha-2.3.jar in the resin 3.1.9, linux, java 1.6.0.14 in webapp.
I deployed the example war file and it works.
I copied kaptcha-2.3.jar in my lib webapp's directory (I have other libs
ofcourse)
and after many 500 Servlet Exception without print stack I try to use the
web.xml of example war file in my web application and I copied example page
too.
If I call it an error appears
500 Servlet Exception
java.lang.NoSuchMethodError: com.jhlabs.image.RippleFilter.setXAmplitude(F)V
java.lang.NoSuchMethodError: com.jhlabs.image.RippleFilter.setXAmplitude(F)V
at
com.google.code.kaptcha.impl.WaterRipple.getDistortedImage(WaterRipple.java:34)
at
com.google.code.kaptcha.impl.DefaultKaptcha.createImage(DefaultKaptcha.java:44)
at
com.google.code.kaptcha.servlet.KaptchaServlet.doGet(KaptchaServlet.java:84)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:114)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:91)
at
com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:1
03)
at
com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:192)
at
com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:187)
at
com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:265)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:273)
at com.caucho.server.port.TcpConnection.run(TcpConnection.java:682)
at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:743)
at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:662)
at java.lang.Thread.run(Thread.java:619)
Any help ??
Thanks a lot for all
Original issue reported on code.google.com by [email protected]
on 13 Oct 2009 at 9:22
What steps will reproduce the problem?
1. Create a failing test.
2. Run 'ant junit'
What is the expected output? What do you see instead?
Even though there's a test failure, the build keeps saying BUILD SUCCESS.
Heya Jon, I was just setting up Kaptcha build on a Hudson instance and
notice this behaviour. Attached is the patch that should fail the build.
The xml output is optional, just a convenience for Hudson junit report
rendering.
Original issue reported on code.google.com by cliffano
on 8 Nov 2009 at 6:07
Attachments:
I learned Kaptcha from the simplecaptcha project which seems suspended. The
Kaptach project is useful for my project, however there are some features I
need but Kaptcha doesn't provides:
1. I need smaller Kaptcha image for my project, but the size is not
configable in Kaptcha.
2. I prefer no noise but the DefaultNoise is at least used.
3. Sometimes there will be multiple Kaptcha images on one same page, but
the session key KAPTCHA_SESSION_KEY can only be used for one image.
So I changed source code:
For feature 1:
a. Added two new configuration parameters "kaptcha.width" and
"kaptcha.height" in Constants and Config
b. Changed DefaultWordRenderer to suit resizeable image.
c. Changed DefaultKaptcha to adjust the image size from configuration
parameters.
For feature 2:
I created a new Noise implementaion called NoNoise, which does nothing for
making noise.
For feature 3:
a. Changed KaptchaServlet to allow customizable Session attribute for
Kaptcha image. User can specify url parameter "?userSessionKey=xxxxxx" to
provide user customized Session key, KaptchaServlet will check this url
parameter, if not specified, use default Session key KAPTCHA_SESSION_KEY,
otherwise, use user specified keys xxxxxx.
I hope there are something useful for the Kaptcha project. So I submit the
changed source code here.
Original issue reported on code.google.com by [email protected]
on 19 Apr 2008 at 10:00
Attachments:
What steps will reproduce the problem?
1. Attempts to generate captcha image result in the following exception:
org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet Captcha threw exception
java.lang.NoSuchMethodError: com.jhlabs.image.RippleFilter.setXAmplitude(F)V
at
com.google.code.kaptcha.impl.WaterRipple.getDistortedImage(WaterRipple.java:34)
at
com.google.code.kaptcha.impl.DefaultKaptcha.createImage(DefaultKaptcha.java:44)
at
com.google.code.kaptcha.servlet.KaptchaServlet.doGet(KaptchaServlet.java:84)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:2
33)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:1
75)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109
)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Pr
otocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
What is the expected output? What do you see instead?
No image is getting generated.
What version of the product are you using? On what operating system?
WinXP SP2
Tomcat 6.0
JDK 6
kaptcha 2.3
Please provide any additional information below.
jcapture is working fine on the same system
thanks.
Original issue reported on code.google.com by [email protected]
on 2 Aug 2008 at 6:54
It is in your email jon. You just need to publish it. This ticket will
hopefully remind you to do it
someday.
Original issue reported on code.google.com by [email protected]
on 4 May 2008 at 6:30
Is there any Audio Captcha support available for Kaptcha? So users can hear
the audio for the captcha code generated?
Original issue reported on code.google.com by [email protected]
on 21 Jan 2009 at 12:21
What steps will reproduce the problem?
1. Kaptcha image is loading is taking 12 secs to load in Unix Box
2. Users are not happy with this.
3. Any idea to fix this issue?
What is the expected output? What do you see instead?
Image should load in 2 secs.
Any solution to fix this.
Original issue reported on code.google.com by [email protected]
on 20 Mar 2009 at 5:52
Hello,
I was wondering if you could tag the sources in SVN each time you release a
version. I'm using a modified version of your kaptcha in my website and it
would make things a lot easier.
Thanks for your work
Original issue reported on code.google.com by [email protected]
on 4 Oct 2007 at 7:33
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.