TitleInternationalize and LoginContent.jsp
Date27-Nov-2006 12:09:49 EET
Version2.5.3
SubmitterHongJieDai
Bug criticalityLightBug
Browser versionFirefox; IE
Bug statusClosedBug
PageProvider used
Servlet ContainerTomcat 4.1
Operating SystemWindows XP
URL
Java version1.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

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-4) was last changed on 04-Mar-2007 14:37 by HarryMetske