You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by xu...@apache.org on 2010/11/04 03:06:48 UTC

svn commit: r1030801 - /geronimo/server/trunk/plugins/tomcat/geronimo-tomcat7/src/main/java/org/apache/geronimo/tomcat/security/authentication/FormAuthenticator.java

Author: xuhaihong
Date: Thu Nov  4 02:06:47 2010
New Revision: 1030801

URL: http://svn.apache.org/viewvc?rev=1030801&view=rev
Log:
GERONIMO-5662 Make the restore request function works

Modified:
    geronimo/server/trunk/plugins/tomcat/geronimo-tomcat7/src/main/java/org/apache/geronimo/tomcat/security/authentication/FormAuthenticator.java

Modified: geronimo/server/trunk/plugins/tomcat/geronimo-tomcat7/src/main/java/org/apache/geronimo/tomcat/security/authentication/FormAuthenticator.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/tomcat/geronimo-tomcat7/src/main/java/org/apache/geronimo/tomcat/security/authentication/FormAuthenticator.java?rev=1030801&r1=1030800&r2=1030801&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/tomcat/geronimo-tomcat7/src/main/java/org/apache/geronimo/tomcat/security/authentication/FormAuthenticator.java (original)
+++ geronimo/server/trunk/plugins/tomcat/geronimo-tomcat7/src/main/java/org/apache/geronimo/tomcat/security/authentication/FormAuthenticator.java Thu Nov  4 02:06:47 2010
@@ -240,14 +240,6 @@ public class FormAuthenticator implement
         if (sreq == null)
             return (false);
 
-        // Is there a saved principal?
-        if (session.getNote(Constants.FORM_PRINCIPAL_NOTE) == null) {
-            if (logger.isDebugEnabled()) {
-                logger.debug(Constants.FORM_PRINCIPAL_NOTE + " is not found in the session, match request fails");
-            }
-            return false;
-        }
-
         // Does the request URI match?
         String requestURI = request.getRequestURI();
         if (requestURI == null)