|Title|Internationalize and LoginContent.jsp
|Date|27-Nov-2006 12:09:49 EET
|Version|2.5.3
|Submitter|HongJieDai
|[Bug criticality]|LightBug
|Browser version|Firefox; IE
|[Bug status]|ClosedBug
|[PageProvider] used|
|Servlet Container|Tomcat 4.1
|Operating System|Windows XP
|URL|
|Java version|1.5.8

In the default template, the source file: LoginContent.jsp, 

{{{
51.   <div class="block">
52.     <input type="hidden" name="page" value="<wiki:Variable var="pagename" />" />
53.     <input type="submit" name="action" value="<fmt:message key="login.submit.login"/>" />
54.     </div>
55.   ......
}}}

In line 53, it use the <fmt> tag to retrieve international text from DefaultResources.properties. But the Login.jsp file, in line 47, it use raw text to do matching like following:

{{{
44.   // If using custom auth, we need to do the login now
45.   
46.   String action = request.getParameter("action");
47.   if( "login".equals(action) )
48.   {
49.   String uid    = request.getParameter( "j_username" );
50.   String passwd = request.getParameter( "j_password" );
51.   ......
}}}

This will cause login failure, and doesn't redirect to the correct page.

The trivial solution is to modify the "LoginContent.jsp" as following:

{{{
51.   <div class="block">
52.     <input type="hidden" name="page" value="<wiki:Variable var="pagename" />" />
53.     <input type="submit" name="action" value="login"/>" />
54.     </div>
55.   ......
}}}

----

Thanks!

However, please do not report bugs against the 2.5.x series yet - there are many things which do not work!

-- JanneJalkanen

----
Please only report bugs on the stable releases, bugs in the latest (non-stable) release can be discussed on the JSPWiki mailing lists for instance. Closing this bug...

--HarryMetske