portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r425135 - in /portals/jetspeed-2/trunk: components/portal/src/java/org/apache/jetspeed/login/LoginProxyServlet.java etc/conf/tomcat/jetspeed-tomcat-5.5.xml
Date Mon, 24 Jul 2006 17:57:40 GMT
Author: taylor
Date: Mon Jul 24 10:57:40 2006
New Revision: 425135

URL: http://svn.apache.org/viewvc?rev=425135&view=rev
Log:
http://issues.apache.org/jira/browse/JS2-555
properly encode credentials with Tomcat 5.5
Patch from Thorsten Berger
tested with 5.5 and 5.0.30, login worked fine here
Please test on your environment...

Modified:
    portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/login/LoginProxyServlet.java
    portals/jetspeed-2/trunk/etc/conf/tomcat/jetspeed-tomcat-5.5.xml

Modified: portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/login/LoginProxyServlet.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/login/LoginProxyServlet.java?rev=425135&r1=425134&r2=425135&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/login/LoginProxyServlet.java
(original)
+++ portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/login/LoginProxyServlet.java
Mon Jul 24 10:57:40 2006
@@ -39,6 +39,8 @@
     {
         String parameter;
 
+        request.setCharacterEncoding( "UTF-8" );
+        
         HttpSession session = request.getSession(true);
 
         parameter = request.getParameter(LoginConstants.DESTINATION);

Modified: portals/jetspeed-2/trunk/etc/conf/tomcat/jetspeed-tomcat-5.5.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/etc/conf/tomcat/jetspeed-tomcat-5.5.xml?rev=425135&r1=425134&r2=425135&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/etc/conf/tomcat/jetspeed-tomcat-5.5.xml (original)
+++ portals/jetspeed-2/trunk/etc/conf/tomcat/jetspeed-tomcat-5.5.xml Mon Jul 24 10:57:40 2006
@@ -29,4 +29,6 @@
             driverClassName="@DRIVER@" url="@URL@"
             maxActive="100" maxIdle="30" maxWait="10000"/> 
 
+	<Valve className="org.apache.catalina.authenticator.FormAuthenticator" characterEncoding="UTF-8"/>
+
 </Context>



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message