<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[JForum Community - Latest posts for "vTest"]]></title>
		<link>https://community.jforum.net/posts/listByUser/35</link>
		<description><![CDATA[Latest posts for "vTest"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>[Developer Forum] 回覆:Configuration of enabling the Captcha? </title>
				<description><![CDATA[ <blockquote>
 <div>
  <cite>andowson wrote:</cite>Hi, I've commit the fix as <a class="snap_shots" href="https://code.google.com/p/jforum2/source/detail?r=224" target="_blank">r224</a>.
  <br>
  JForum will disable the submit button until the captcha image is fully loaded.
  <br>
  Please check out and test if this works.
 </div>
</blockquote>
<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</guid>
				<link>https://community.jforum.net/posts/preList/49/189</link>
				<pubDate><![CDATA[Sat, 23 Feb 2013 03:02:26]]> GMT</pubDate>
				<author><![CDATA[ vTest]]></author>
			</item>
			<item>
				<title>[Developer Forum] &quot;Illegal character in authority&quot;</title>
				<description><![CDATA[ I know this problem is not caused by JForum. I post this question here in case someone else runs into the same problem and find a solution.
<br>
<br>
In the SSO integration, the redirect URL configuration leads to the following error:
<br>
<br>
<pre class="line-numbers"><code class="language-java match-braces"><br>2013-02-05 09:27:46,494 ERROR - [net.jforum.exceptions.ExceptionWriter](80) net.jforum.exceptions.ForumException: java.lang.reflect.InvocationTargetException<br>	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>	at java.lang.reflect.Method.invoke(Method.java:597)<br>	at net.jforum.Command.process(Command.java:114)<br>	at net.jforum.JForum.processCommand(JForum.java:246)<br>	at net.jforum.JForum.service(JForum.java:228)<br>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)<br>	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)<br>	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br>	at net.jforum.util.legacy.clickstream.ClickstreamFilter.doFilter(ClickstreamFilter.java:59)<br>	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br>	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br>	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)<br>	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)<br>	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)<br>	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)<br>	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)<br>	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)<br>	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)<br>	at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)<br>	at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:311)<br>	at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:776)<br>	at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:705)<br>	at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:898)<br>	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)<br>	at java.lang.Thread.run(Thread.java:662)<br>Caused by: java.lang.reflect.InvocationTargetException<br>	... 27 more<br>Caused by: java.lang.IllegalArgumentException<br>	at java.net.URI.create(URI.java:841)<br>	at net.jforum.view.forum.common.ViewCommon.contextToLogin(ViewCommon.java:135)<br>	at net.jforum.view.forum.common.ViewCommon.contextToLogin(ViewCommon.java:118)<br>	at net.jforum.view.forum.PostAction.anonymousPost(PostAction.java:1507)<br>	at net.jforum.view.forum.PostAction.insert(PostAction.java:504)<br>	... 27 more<br>Caused by: java.net.URISyntaxException: Illegal character in authority at index 7: http://www.zylomlocal.com <br>	at java.net.URI$Parser.fail(URI.java:2810)<br>	at java.net.URI$Parser.parseAuthority(URI.java:3148)<br>	at java.net.URI$Parser.parseHierarchical(URI.java:3059)<br>	at java.net.URI$Parser.parse(URI.java:3015)<br>	at java.net.URI.&lt;init&gt;(URI.java:577)<br>	at java.net.URI.create(URI.java:839)<br>	... 31 more<br><br>URL is: /jforum/posts/insert/3.page <br>2013-02-05 09:27:46,494 ERROR - [ExceptionWriter] net.jforum.exceptions.ForumException: java.lang.reflect.InvocationTargetException<br>	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>	at java.lang.reflect.Method.invoke(Method.java:597)<br>	at net.jforum.Command.process(Command.java:114)<br>	at net.jforum.JForum.processCommand(JForum.java:246)<br>	at net.jforum.JForum.service(JForum.java:228)<br>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)<br>	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)<br>	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br>	at net.jforum.util.legacy.clickstream.ClickstreamFilter.doFilter(ClickstreamFilter.java:59)<br>	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br>	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br>	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)<br>	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)<br>	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)<br>	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)<br>	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)<br>	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)<br>	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)<br>	at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)<br>	at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:311)<br>	at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:776)<br>	at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:705)<br>	at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:898)<br>	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)<br>	at java.lang.Thread.run(Thread.java:662)<br>Caused by: java.lang.reflect.InvocationTargetException<br>	... 27 more<br>Caused by: java.lang.IllegalArgumentException<br>	at java.net.URI.create(URI.java:841)<br>	at net.jforum.view.forum.common.ViewCommon.contextToLogin(ViewCommon.java:135)<br>	at net.jforum.view.forum.common.ViewCommon.contextToLogin(ViewCommon.java:118)<br>	at net.jforum.view.forum.PostAction.anonymousPost(PostAction.java:1507)<br>	at net.jforum.view.forum.PostAction.insert(PostAction.java:504)<br>	... 27 more<br>Caused by: java.net.URISyntaxException: Illegal character in authority at index 7: http://www.mylocal.com <br>	at java.net.URI$Parser.fail(URI.java:2810)<br>	at java.net.URI$Parser.parseAuthority(URI.java:3148)<br>	at java.net.URI$Parser.parseHierarchical(URI.java:3059)<br>	at java.net.URI$Parser.parse(URI.java:3015)<br></code></pre>
<br>
With a debugger, I can't see anything wrong on the following lines:
<br>
<pre class="line-numbers"><code class="language-java match-braces"><br>		if (ConfigKeys.TYPE_SSO.equals(SystemGlobals.getValue(ConfigKeys.AUTHENTICATION_TYPE))) {<br>			String redirect = SystemGlobals.getValue(ConfigKeys.SSO_REDIRECT);<br><br></code></pre>
<br>
in ViewCommon.java.]]></description>
				<guid isPermaLink="true">https://community.jforum.net/posts/preList/51/187</guid>
				<link>https://community.jforum.net/posts/preList/51/187</link>
				<pubDate><![CDATA[Wed, 6 Feb 2013 03:42:22]]> GMT</pubDate>
				<author><![CDATA[ vTest]]></author>
			</item>
			<item>
				<title>[Developer Forum] 回覆:Configuration of enabling the Captcha? </title>
				<description><![CDATA[ <blockquote>
 <div>
  <cite>andowson wrote:</cite>Please provide your system environment for more information. Thanks~
 </div>
</blockquote>
<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</guid>
				<link>https://community.jforum.net/posts/preList/49/186</link>
				<pubDate><![CDATA[Wed, 6 Feb 2013 01:17:28]]> GMT</pubDate>
				<author><![CDATA[ vTest]]></author>
			</item>
			<item>
				<title>[Developer Forum] 回覆:Configuration of enabling the Captcha? </title>
				<description><![CDATA[ <blockquote>
 <div>
  <cite>andowson wrote:</cite>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 <font color="blue">true</font> to return <font color="red">false</font>.
  <br>
  <br>
  <pre class="line-numbers"><code class="language-java match-braces">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></pre>
 </div>
</blockquote>
<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>
<pre class="line-numbers"><code class="language-java match-braces"><br>	private ImageCaptcha testImageCaptcha(){<br>		if(this.imageCaptcha == null)<br>			this.imageCaptcha =  Captcha.getInstance().getNextImageCaptcha();<br>		<br>		return this.imageCaptcha;<br>	}<br></code></pre>
<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</guid>
				<link>https://community.jforum.net/posts/preList/49/184</link>
				<pubDate><![CDATA[Tue, 5 Feb 2013 01:59:22]]> GMT</pubDate>
				<author><![CDATA[ vTest]]></author>
			</item>
			<item>
				<title>[Developer Forum] 回覆:Configuration of enabling the Captcha? </title>
				<description><![CDATA[ <blockquote>
 <div>
  <cite>andowson wrote:</cite>Please provide your system configuration for more information. Thanks~
 </div>
</blockquote>
<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>
<pre class="line-numbers"><code class="language-java match-braces"><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></pre>
<br>
and the cause is in the following method:
<br>
<pre class="line-numbers"><code class="language-java match-braces"><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></pre>
<br>
The condition check line
<br>
<pre class="line-numbers"><code class="language-java match-braces"><br>SystemGlobals.getBoolValue(ConfigKeys.CAPTCHA_REGISTRATION) <br>				|| SystemGlobals.getBoolValue(ConfigKeys.CAPTCHA_POSTS))<br>				&amp;&amp; this.imageCaptcha != null<br></code></pre>
<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</guid>
				<link>https://community.jforum.net/posts/preList/49/182</link>
				<pubDate><![CDATA[Sat, 2 Feb 2013 02:45:01]]> GMT</pubDate>
				<author><![CDATA[ vTest]]></author>
			</item>
			<item>
				<title>[Developer Forum] Re:JForumExecutionContext.getRequest().getCookies() Doesn&#39;t Pick Up All Cookies</title>
				<description><![CDATA[ I write my cookie retrieval function and have the same result. So, the problem isn't related with the JForumExecutionContext.getRequest().getCookies().
<br>
<br>
I can retrieve the cookie right after it was created. I guess the problem likely relates with the cookie age.]]></description>
				<guid isPermaLink="true">https://community.jforum.net/posts/preList/50/181</guid>
				<link>https://community.jforum.net/posts/preList/50/181</link>
				<pubDate><![CDATA[Thu, 31 Jan 2013 03:58:16]]> GMT</pubDate>
				<author><![CDATA[ vTest]]></author>
			</item>
			<item>
				<title>[Developer Forum] 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</guid>
				<link>https://community.jforum.net/posts/preList/49/178</link>
				<pubDate><![CDATA[Wed, 30 Jan 2013 08:08:43]]> GMT</pubDate>
				<author><![CDATA[ vTest]]></author>
			</item>
			<item>
				<title>[Developer Forum] JForumExecutionContext.getRequest().getCookies() Doesn&#39;t Pick Up All Cookies</title>
				<description><![CDATA[ I use ControllerUtils.getCookie(String name) function to retrieve a cookie. Although the cookie is there, the function return null. With a debugger, I find the JForumExecutionContext.getRequest().getCookies() doesn't pick up all cookies. It only picks up 10 cookies while there are 12 cookie. I can't see any differences in domain nor path for cookies picked up by the function and cookies are not picked up by the function. How to make sure a cookie will be picked up by the function?]]></description>
				<guid isPermaLink="true">https://community.jforum.net/posts/preList/50/176</guid>
				<link>https://community.jforum.net/posts/preList/50/176</link>
				<pubDate><![CDATA[Wed, 30 Jan 2013 07:55:19]]> GMT</pubDate>
				<author><![CDATA[ vTest]]></author>
			</item>
			<item>
				<title>[Developer Forum] 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</guid>
				<link>https://community.jforum.net/posts/preList/49/175</link>
				<pubDate><![CDATA[Tue, 29 Jan 2013 01:36:11]]> GMT</pubDate>
				<author><![CDATA[ vTest]]></author>
			</item>
			<item>
				<title>[Developer Forum] 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</guid>
				<link>https://community.jforum.net/posts/preList/49/171</link>
				<pubDate><![CDATA[Sat, 26 Jan 2013 08:52:18]]> GMT</pubDate>
				<author><![CDATA[ vTest]]></author>
			</item>
			<item>
				<title>[Integration Forum] Re:JForum Integration Single Signon</title>
				<description><![CDATA[ I can't figure out why I get the following error in the sso.redirect configuration.
<br>
<br>
<blockquote class="uncited">
 <div>
  java.net.URISyntaxException: Illegal character in authority at index 7: <a class="snap_shots" href="http://www.mycompany.com" target="_blank">http://www.mycompany.com</a>
 </div>
</blockquote>
<br>
<br>
I don't see any bad characters there.]]></description>
				<guid isPermaLink="true">https://community.jforum.net/posts/preList/47/169</guid>
				<link>https://community.jforum.net/posts/preList/47/169</link>
				<pubDate><![CDATA[Fri, 18 Jan 2013 06:37:09]]> GMT</pubDate>
				<author><![CDATA[ vTest]]></author>
			</item>
			<item>
				<title>[Integration Forum] 回覆:JForum Integration Single Signon</title>
				<description><![CDATA[ <blockquote>
 <div>
  <cite>andowson wrote:</cite>If you want to deny anonymous post in JForum, just go to Admin Control Panel &gt; Group Managment &gt; General &gt; Permission
  <br>
  Choose all boards in the deny anonymous post section.
 </div>
</blockquote>
<br>
<br>
Thanks very much.
<br>
<br>
After work, I recognize that it likely is a configuration thing, but not a code problem.
<br>
<br>]]></description>
				<guid isPermaLink="true">https://community.jforum.net/posts/preList/47/168</guid>
				<link>https://community.jforum.net/posts/preList/47/168</link>
				<pubDate><![CDATA[Fri, 18 Jan 2013 00:43:40]]> GMT</pubDate>
				<author><![CDATA[ vTest]]></author>
			</item>
			<item>
				<title>[Integration Forum] Re:JForum Integration Single Signon</title>
				<description><![CDATA[ Thanks very much for the lead.
<br>
<br>
I notice an 'Anonymous' user can post a message in a use scenario, but not in other ones. The authentication seems to be inconsistent. How to enforce only a signin user can post a message for all cases, otherwise it is read only?]]></description>
				<guid isPermaLink="true">https://community.jforum.net/posts/preList/47/166</guid>
				<link>https://community.jforum.net/posts/preList/47/166</link>
				<pubDate><![CDATA[Thu, 17 Jan 2013 07:48:01]]> GMT</pubDate>
				<author><![CDATA[ vTest]]></author>
			</item>
			<item>
				<title>[Integration Forum] JForum Integration Single Signon</title>
				<description><![CDATA[ I need some helps on JForum integration SSO. I am aware this discussion <a class="snap_shots" href="http://www.coderanch.com/t/574564/jforum/Single-Signon-automatic-login" target="_new" rel="nofollow">http://www.coderanch.com/t/574564/jforum/Single-Signon-automatic-login</a>. The information is out updated and doesn't match the current code base. The following is the integration logic. Please correct me if it is not right.
<br>
<li>
 <br>
 1. After a user signs in the application, encrypt this user’s unique identifier and save this encrypted value in a cookie.
</li>
<br>
<li>2. This cookie can be used to authenticate the user in JForum. A filter/interceptor will be created to verify the authorization for any JForum URLS with a pattern of “/forum/*”</li>
<br>
<li>3. When a user navigates to a JForum page, the cookie value will be used to verify user’s credential against the JForum database. The cookie value will be decrypted for usage, of course.</li>
<br>
<li>4. If it is the first time for the user using JForum (that is the user account data doesn’t exist in JForum DB), a web service call will be issued to retrieve this user’s profile data, namely screen name, email, and encrypted password, from our app. And those user data will be stored in the jforum_users table of the JForum database.</li>
<br>
<li>5. When the user log off her/his account or a session timeout, the cookie will be removed.</li>
<br>
<br>
<br>
Please advise how the integration need to take place.
<br>
<br>
Thanks for your helps in advance.]]></description>
				<guid isPermaLink="true">https://community.jforum.net/posts/preList/47/164</guid>
				<link>https://community.jforum.net/posts/preList/47/164</link>
				<pubDate><![CDATA[Wed, 16 Jan 2013 02:13:00]]> GMT</pubDate>
				<author><![CDATA[ vTest]]></author>
			</item>
	</channel>
</rss>