<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Configuration of enabling the Captcha? "]]></title>
		<link>https://community.jforum.net/posts/list/3.page</link>
		<description><![CDATA[Latest messages posted in the topic "Configuration of enabling the Captcha? "]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Configuration of enabling the Captcha? </title>
				<description><![CDATA[ In our installation, the captcha is not working. I can make a post without a correct match text. Where I can enable it?]]></description>
				<guid isPermaLink="true">https://community.jforum.net/posts/preList/49/171.page</guid>
				<link>https://community.jforum.net/posts/preList/49/171.page</link>
				<pubDate><![CDATA[Sat, 26 Jan 2013 08:52:18]]> GMT</pubDate>
				<author><![CDATA[ vTest]]></author>
			</item>
			<item>
				<title>回覆:Configuration of enabling the Captcha? </title>
				<description><![CDATA[ You can check the default setting in your jforum's WEB-INF/config/SystemGlobals.properties first:
<br>
[code]# ########
<br>
# Captcha
<br>
# ########
<br>
captcha.registration = true
<br>
captcha.posts = true
<br>
captcha.ignore.case = true
<br>
<br>
captcha.width = 250
<br>
captcha.height = 75
<br>
<br>
captcha.min.words = 4
<br>
captcha.max.words = 6
<br>
<br>
captcha.min.font.size = 25
<br>
captcha.max.font.size = 35[/code]
<br>
<br>
And if you want to match captcha case, change captcha.ignore.case to false.
<br>
Add the setting into your jforum's WEB-INF/config/jforum-custom.conf to override the default setting:
<br>
[code]captcha.ignore.case = false[/code]]]></description>
				<guid isPermaLink="true">https://community.jforum.net/posts/preList/49/172.page</guid>
				<link>https://community.jforum.net/posts/preList/49/172.page</link>
				<pubDate><![CDATA[Sun, 27 Jan 2013 01:59:45]]> GMT</pubDate>
				<author><![CDATA[ andowson]]></author>
			</item>
			<item>
				<title>Re:Configuration of enabling the Captcha? </title>
				<description><![CDATA[ Thanks for your reply.
<br>
<br>
I check the configuration files. Our installation uses the Captcha default configuration as what you show in your answer. And there isn't any Captcha related configuration in the jforum-custom.conf file. The version number is 2.3.5-SNAPSHOT. I can make a post without entering any text in the Captcha field. Any other configuration would change the behaviour? I hope that I don't need to turn on the debugger to find the cause of this problem at PostAction class.]]></description>
				<guid isPermaLink="true">https://community.jforum.net/posts/preList/49/175.page</guid>
				<link>https://community.jforum.net/posts/preList/49/175.page</link>
				<pubDate><![CDATA[Tue, 29 Jan 2013 01:36:11]]> GMT</pubDate>
				<author><![CDATA[ vTest]]></author>
			</item>
			<item>
				<title>回覆:Configuration of enabling the Captcha? </title>
				<description><![CDATA[ Hi, I've tested it in my development environment, the captcha for post is enabled by default. And if I didn't enter any text in the captcha field, although I can press the save button, JForum will prompt me to enter the captcha.]]></description>
				<guid isPermaLink="true">https://community.jforum.net/posts/preList/49/177.page</guid>
				<link>https://community.jforum.net/posts/preList/49/177.page</link>
				<pubDate><![CDATA[Wed, 30 Jan 2013 07:55:51]]> GMT</pubDate>
				<author><![CDATA[ andowson]]></author>
			</item>
			<item>
				<title>Re:Configuration of enabling the Captcha? </title>
				<description><![CDATA[ I notice the Captcha works on this JForum installation. That lets me wondering why it doesn't work on our installation with the same configuration.]]></description>
				<guid isPermaLink="true">https://community.jforum.net/posts/preList/49/178.page</guid>
				<link>https://community.jforum.net/posts/preList/49/178.page</link>
				<pubDate><![CDATA[Wed, 30 Jan 2013 08:08:43]]> GMT</pubDate>
				<author><![CDATA[ vTest]]></author>
			</item>
			<item>
				<title>回覆:Configuration of enabling the Captcha? </title>
				<description><![CDATA[ Please provide your system configuration for more information. Thanks~]]></description>
				<guid isPermaLink="true">https://community.jforum.net/posts/preList/49/180.page</guid>
				<link>https://community.jforum.net/posts/preList/49/180.page</link>
				<pubDate><![CDATA[Wed, 30 Jan 2013 12:00:44]]> GMT</pubDate>
				<author><![CDATA[ andowson]]></author>
			</item>
			<item>
				<title>回覆:Configuration of enabling the Captcha? </title>
				<description><![CDATA[ [quote=andowson]Please provide your system configuration for more information. Thanks~[/quote]
<br>
<br>
I am not sure what system configuration you need.
<br>
<br>
With a debugger, I find the problem is on the following line:
<br>
[code]
<br>
boolean needCaptcha = SystemGlobals.getBoolValue(ConfigKeys.CAPTCHA_POSTS)
<br>
&amp;&amp; request.getSessionContext().getAttribute(ConfigKeys.REQUEST_IGNORE_CAPTCHA) == null;
<br>
<br>
if (needCaptcha &amp;&amp; !us.validateCaptchaResponse(this.request.getParameter("captcha_anwser"))) {
<br>
this.context.put("post", post);
<br>
this.context.put("start", this.request.getParameter("start"));
<br>
this.context.put("error", I18n.getMessage("CaptchaResponseFails"));
<br>
this.insert();
<br>
return;
<br>
}
<br>
[/code]
<br>
and the cause is in the following method:
<br>
[code]
<br>
public boolean validateCaptchaResponse(String origUserResponse)
<br>
{
<br>
String userResponse = origUserResponse;
<br>
if ((SystemGlobals.getBoolValue(ConfigKeys.CAPTCHA_REGISTRATION)
<br>
|| SystemGlobals.getBoolValue(ConfigKeys.CAPTCHA_POSTS))
<br>
&amp;&amp; this.imageCaptcha != null) {
<br>
<br>
if (SystemGlobals.getBoolValue(ConfigKeys.CAPTCHA_IGNORE_CASE)) {
<br>
userResponse = userResponse.toLowerCase(Locale.US);
<br>
}
<br>
<br>
final boolean result = this.imageCaptcha.validateResponse(userResponse).booleanValue();
<br>
this.destroyCaptcha();
<br>
return result;
<br>
}
<br>
<br>
return true;
<br>
}
<br>
[/code]
<br>
The condition check line
<br>
[code]
<br>
SystemGlobals.getBoolValue(ConfigKeys.CAPTCHA_REGISTRATION)
<br>
|| SystemGlobals.getBoolValue(ConfigKeys.CAPTCHA_POSTS))
<br>
&amp;&amp; this.imageCaptcha != null
<br>
[/code]
<br>
returns false. And I find the this.imageCaptcha is null and that alone can make the condition false. So why it is null then?
<br>]]></description>
				<guid isPermaLink="true">https://community.jforum.net/posts/preList/49/182.page</guid>
				<link>https://community.jforum.net/posts/preList/49/182.page</link>
				<pubDate><![CDATA[Sat, 2 Feb 2013 02:45:01]]> GMT</pubDate>
				<author><![CDATA[ vTest]]></author>
			</item>
			<item>
				<title>回覆:Configuration of enabling the Captcha? </title>
				<description><![CDATA[ I found that this issue can be reproduced at the first time Java VM starts to load the Captcha engine.
<br>
When the Captcha engine is not ready, the imageCaptcha will return null.
<br>
A quick fix is to replace the last return statement from return [color=blue]true[/color] to return [color=red]false[/color].
<br>
<br>
[code] public boolean validateCaptchaResponse(String origUserResponse)
<br>
{
<br>
String userResponse = origUserResponse;
<br>
if ((SystemGlobals.getBoolValue(ConfigKeys.CAPTCHA_REGISTRATION)
<br>
|| SystemGlobals.getBoolValue(ConfigKeys.CAPTCHA_POSTS))
<br>
&amp;&amp; this.imageCaptcha != null) {
<br>
<br>
if (SystemGlobals.getBoolValue(ConfigKeys.CAPTCHA_IGNORE_CASE)) {
<br>
userResponse = userResponse.toLowerCase(Locale.US);
<br>
}
<br>
<br>
final boolean result = this.imageCaptcha.validateResponse(userResponse).booleanValue();
<br>
this.destroyCaptcha();
<br>
return result;
<br>
}
<br>
<br>
return false;
<br>
}[/code]]]></description>
				<guid isPermaLink="true">https://community.jforum.net/posts/preList/49/183.page</guid>
				<link>https://community.jforum.net/posts/preList/49/183.page</link>
				<pubDate><![CDATA[Sun, 3 Feb 2013 23:59:18]]> GMT</pubDate>
				<author><![CDATA[ andowson]]></author>
			</item>
			<item>
				<title>回覆:Configuration of enabling the Captcha? </title>
				<description><![CDATA[ [quote=andowson]I found that this issue can be reproduced at the first time Java VM starts to load the Captcha engine.
<br>
When the Captcha engine is not ready, the imageCaptcha will return null.
<br>
A quick fix is to replace the last return statement from return [color=blue]true[/color] to return [color=red]false[/color].
<br>
<br>
[code] public boolean validateCaptchaResponse(String origUserResponse)
<br>
{
<br>
String userResponse = origUserResponse;
<br>
if ((SystemGlobals.getBoolValue(ConfigKeys.CAPTCHA_REGISTRATION)
<br>
|| SystemGlobals.getBoolValue(ConfigKeys.CAPTCHA_POSTS))
<br>
&amp;&amp; this.imageCaptcha != null) {
<br>
<br>
if (SystemGlobals.getBoolValue(ConfigKeys.CAPTCHA_IGNORE_CASE)) {
<br>
userResponse = userResponse.toLowerCase(Locale.US);
<br>
}
<br>
<br>
final boolean result = this.imageCaptcha.validateResponse(userResponse).booleanValue();
<br>
this.destroyCaptcha();
<br>
return result;
<br>
}
<br>
<br>
return false;
<br>
}[/code][/quote]
<br>
<br>
With the change, I can't pass Captcha with a correct matched text.
<br>
<br>
Also, I do notice that the Captcha comes up late. A message "Captcha unavailable" shows up first.
<br>
<br>
I also try to use the new method I create:
<br>
[code]
<br>
private ImageCaptcha testImageCaptcha(){
<br>
if(this.imageCaptcha == null)
<br>
this.imageCaptcha = Captcha.getInstance().getNextImageCaptcha();
<br>
<br>
return this.imageCaptcha;
<br>
}
<br>
[/code]
<br>
and call this method instead of this.imageCaptcha in this.imageCaptcha != null. The change, however, blocks Captcha - I can't pass Captcha with a matched characters.
<br>]]></description>
				<guid isPermaLink="true">https://community.jforum.net/posts/preList/49/184.page</guid>
				<link>https://community.jforum.net/posts/preList/49/184.page</link>
				<pubDate><![CDATA[Tue, 5 Feb 2013 01:59:22]]> GMT</pubDate>
				<author><![CDATA[ vTest]]></author>
			</item>
			<item>
				<title>回覆:Configuration of enabling the Captcha? </title>
				<description><![CDATA[ Please provide your system environment for more information. Thanks~]]></description>
				<guid isPermaLink="true">https://community.jforum.net/posts/preList/49/185.page</guid>
				<link>https://community.jforum.net/posts/preList/49/185.page</link>
				<pubDate><![CDATA[Tue, 5 Feb 2013 13:36:25]]> GMT</pubDate>
				<author><![CDATA[ andowson]]></author>
			</item>
			<item>
				<title>回覆:Configuration of enabling the Captcha? </title>
				<description><![CDATA[ [quote=andowson]Please provide your system environment for more information. Thanks~[/quote]
<br>
<br>
I run it in Tomcat on Windows 7. I can't see how the problem relates with those systems.]]></description>
				<guid isPermaLink="true">https://community.jforum.net/posts/preList/49/186.page</guid>
				<link>https://community.jforum.net/posts/preList/49/186.page</link>
				<pubDate><![CDATA[Wed, 6 Feb 2013 01:17:28]]> GMT</pubDate>
				<author><![CDATA[ vTest]]></author>
			</item>
			<item>
				<title>回覆:Configuration of enabling the Captcha? </title>
				<description><![CDATA[ Hi, I've commit the fix as [url=https://code.google.com/p/jforum2/source/detail?r=224]r224[/url].
<br>
JForum will disable the submit button until the captcha image is fully loaded.
<br>
Please check out and test if this works.]]></description>
				<guid isPermaLink="true">https://community.jforum.net/posts/preList/49/188.page</guid>
				<link>https://community.jforum.net/posts/preList/49/188.page</link>
				<pubDate><![CDATA[Fri, 22 Feb 2013 10:08:11]]> GMT</pubDate>
				<author><![CDATA[ andowson]]></author>
			</item>
			<item>
				<title>回覆:Configuration of enabling the Captcha? </title>
				<description><![CDATA[ [quote=andowson]Hi, I've commit the fix as [url=https://code.google.com/p/jforum2/source/detail?r=224]r224[/url].
<br>
JForum will disable the submit button until the captcha image is fully loaded.
<br>
Please check out and test if this works.[/quote]
<br>
<br>
Thanks. I am current working on other tasks. I will report back once I have a chance to test it out. I need to remind our integration build team to get the latest version of JForum.]]></description>
				<guid isPermaLink="true">https://community.jforum.net/posts/preList/49/189.page</guid>
				<link>https://community.jforum.net/posts/preList/49/189.page</link>
				<pubDate><![CDATA[Sat, 23 Feb 2013 03:02:26]]> GMT</pubDate>
				<author><![CDATA[ vTest]]></author>
			</item>
			<item>
				<title>Re:Configuration of enabling the Captcha? </title>
				<description><![CDATA[ Hi,
<br>
i have installed jForum 2.3.5 in my localhost and in the live server. The captcha verification is working on my localhost, but it is not working on my server. So, currently i have disabled the captcha verification. Any suggestion, how to fix this problem?]]></description>
				<guid isPermaLink="true">https://community.jforum.net/posts/preList/49/439.page</guid>
				<link>https://community.jforum.net/posts/preList/49/439.page</link>
				<pubDate><![CDATA[Wed, 18 Mar 2015 19:31:30]]> GMT</pubDate>
				<author><![CDATA[ ashok]]></author>
			</item>
			<item>
				<title>回覆:Configuration of enabling the Captcha? </title>
				<description><![CDATA[ Please check your web container's log file(for example, Tomcat's catalina.out)
<br>
And see if there are some error messages as a hint for what's going wrong there.
<br>
Also, you'd better provide some environment information like OS version, Java version, etc.
<br>
<br>
Since JForum use JCaptcha as the capacha engine, you can check the [url=https://jcaptcha.atlassian.net/wiki/display/general/FAQ]FAQ[/url] on JCaptcha project website.
<br>
For Example, if you're running JForum on Linux server, you have to set the option in your JAVA_OPTS
<br>
[code]-Djava.awt.headless=true[/code]
<br>
<br>
BTW, JForum 2.3.5 is not secure, you'd better install JForum 2.4.0 or later.]]></description>
				<guid isPermaLink="true">https://community.jforum.net/posts/preList/49/440.page</guid>
				<link>https://community.jforum.net/posts/preList/49/440.page</link>
				<pubDate><![CDATA[Thu, 19 Mar 2015 07:21:16]]> GMT</pubDate>
				<author><![CDATA[ andowson]]></author>
			</item>
			<item>
				<title>Re:Configuration of enabling the Captcha? </title>
				<description><![CDATA[ [Wed Apr 08 03:11:35 EDT 2015] [Info] CsrfGuard analyzing request /forum/forums/list.page
<br>
[Wed Apr 08 03:11:36 EDT 2015] [Info] CsrfGuard analyzing request /forum/js/list/userLocalTime.page
<br>
[Wed Apr 08 03:11:36 EDT 2015] [Info] CsrfGuard analyzing request /forum/ping_session.jsp
<br>
[Wed Apr 08 03:11:39 EDT 2015] [Info] CsrfGuard analyzing request /forum/user/insert.page
<br>
[Wed Apr 08 03:11:39 EDT 2015] [Info] CsrfGuard analyzing request /forum/ping_session.jsp
<br>
[Wed Apr 08 03:11:41 EDT 2015] [Info] CsrfGuard analyzing request /forum/user/acceptAgreement.page
<br>
[Wed Apr 08 03:11:42 EDT 2015] [Info] CsrfGuard analyzing request /forum/user/insert.page
<br>
[Wed Apr 08 03:11:42 EDT 2015] [Info] CsrfGuard analyzing request /forum/captcha/generate/1428477102005.page
<br>
[Wed Apr 08 03:11:42 EDT 2015] [Info] CsrfGuard analyzing request /forum/ping_session.jsp
<br>
[Wed Apr 08 03:12:43 EDT 2015] [Info] CsrfGuard analyzing request /forum/ping_session.jsp
<br>
[Wed Apr 08 03:12:47 EDT 2015] [Info] CsrfGuard analyzing request /forum/captcha/generate.page
<br>
[Wed Apr 08 03:13:22 EDT 2015] [Info] CsrfGuard analyzing request /forum/jforum.page
<br>
[Wed Apr 08 03:13:23 EDT 2015] [Info] CsrfGuard analyzing request /forum/ping_session.jsp
<br>
[Wed Apr 08 03:13:23 EDT 2015] [Info] CsrfGuard analyzing request /forum/captcha/generate/1428477202359.page
<br>
[Wed Apr 08 03:14:24 EDT 2015] [Info] CsrfGuard analyzing request /forum/ping_session.jsp
<br>
[Wed Apr 08 03:15:25 EDT 2015] [Info] CsrfGuard analyzing request /forum/ping_session.jsp
<br>
[Wed Apr 08 03:16:25 EDT 2015] [Info] CsrfGuard analyzing request /forum/ping_session.jsp
<br>
[Wed Apr 08 03:17:26 EDT 2015] [Info] CsrfGuard analyzing request /forum/ping_session.jsp
<br>
[Wed Apr 08 03:18:27 EDT 2015] [Info] CsrfGuard analyzing request /forum/ping_session.jsp
<br>
[Wed Apr 08 03:19:28 EDT 2015] [Info] CsrfGuard analyzing request /forum/ping_session.jsp
<br>
[Wed Apr 08 03:20:28 EDT 2015] [Info] CsrfGuard analyzing request /forum/ping_session.jsp
<br>
[Wed Apr 08 03:21:29 EDT 2015] [Info] CsrfGuard analyzing request /forum/ping_session.jsp
<br>
[Wed Apr 08 03:22:30 EDT 2015] [Info] CsrfGuard analyzing request /forum/ping_session.jsp
<br>
[Wed Apr 08 03:23:31 EDT 2015] [Info] CsrfGuard analyzing request /forum/ping_session.jsp
<br>
[Wed Apr 08 03:24:32 EDT 2015] [Info] CsrfGuard analyzing request /forum/ping_session.jsp
<br>
[Wed Apr 08 03:25:32 EDT 2015] [Info] CsrfGuard analyzing request /forum/ping_session.jsp
<br>
[Wed Apr 08 03:26:33 EDT 2015] [Info] CsrfGuard analyzing request /forum/ping_session.jsp
<br>
[Wed Apr 08 03:27:34 EDT 2015] [Info] CsrfGuard analyzing request /forum/ping_session.jsp
<br>
[Wed Apr 08 03:28:35 EDT 2015] [Info] CsrfGuard analyzing request /forum/ping_session.jsp
<br>
[Wed Apr 08 03:29:35 EDT 2015] [Info] CsrfGuard analyzing request /forum/ping_session.jsp
<br>
[Wed Apr 08 03:30:36 EDT 2015] [Info] CsrfGuard analyzing request /forum/ping_session.jsp
<br>
[Wed Apr 08 03:31:37 EDT 2015] [Info] CsrfGuard analyzing request /forum/ping_session.jsp
<br>
<br>
<br>
<br>
<br>
the captcha image is loaded in shows the tomcat log files..
<br>
<br>
how to set tomcat JAVA_OPTS="-Djava.awt.headless=true" ????
<br>
which tomcat file to edit?... any sug???
<br>
<br>
<br>
<br>]]></description>
				<guid isPermaLink="true">https://community.jforum.net/posts/preList/49/451.page</guid>
				<link>https://community.jforum.net/posts/preList/49/451.page</link>
				<pubDate><![CDATA[Sat, 11 Apr 2015 15:07:05]]> GMT</pubDate>
				<author><![CDATA[ ashok]]></author>
			</item>
			<item>
				<title>回覆:Configuration of enabling the Captcha? </title>
				<description><![CDATA[ You can create a file setenv.sh under tomcat/bin directory
<br>
<br>
The content of my setenv.sh is as follows:
<br>
[code]
<br>
JAVA_HOME="/usr/java/latest"
<br>
JAVA_OPTS="-server -XX:NewSize=123m -XX:MaxNewSize=123m -XX:SurvivorRatio=8 -Xss256k -Xms495m -Xmx495m -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true"
<br>
[/code]
<br>
<br>
You can modify the other memory size options according to your server's capacity.
<br>
<br>
Reference:
<br>
http://www.andowson.com/posts/list/556.page]]></description>
				<guid isPermaLink="true">https://community.jforum.net/posts/preList/49/452.page</guid>
				<link>https://community.jforum.net/posts/preList/49/452.page</link>
				<pubDate><![CDATA[Sat, 11 Apr 2015 17:19:59]]> GMT</pubDate>
				<author><![CDATA[ andowson]]></author>
			</item>
	</channel>
</rss>