tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1162932 - /tomcat/trunk/java/org/apache/catalina/authenticator/FormAuthenticator.java
Date Mon, 29 Aug 2011 18:28:29 GMT
Author: markt
Date: Mon Aug 29 18:28:28 2011
New Revision: 1162932

URL: http://svn.apache.org/viewvc?rev=1162932&view=rev
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=51739
Set the method when using a landing page

Modified:
    tomcat/trunk/java/org/apache/catalina/authenticator/FormAuthenticator.java

Modified: tomcat/trunk/java/org/apache/catalina/authenticator/FormAuthenticator.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/authenticator/FormAuthenticator.java?rev=1162932&r1=1162931&r2=1162932&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/authenticator/FormAuthenticator.java (original)
+++ tomcat/trunk/java/org/apache/catalina/authenticator/FormAuthenticator.java Mon Aug 29
18:28:28 2011
@@ -302,6 +302,7 @@ public class FormAuthenticator
                 // the landing page
                 String uri = request.getContextPath() + landingPage;
                 SavedRequest saved = new SavedRequest();
+                saved.setMethod("GET");
                 saved.setRequestURI(uri);
                 request.getSessionInternal(true).setNote(
                         Constants.FORM_REQUEST_NOTE, saved);
@@ -331,6 +332,7 @@ public class FormAuthenticator
                 // the landing page
                 String uri = request.getContextPath() + landingPage;
                 SavedRequest saved = new SavedRequest();
+                saved.setMethod("GET");
                 saved.setRequestURI(uri);
                 session.setNote(Constants.FORM_REQUEST_NOTE, saved);
                 response.sendRedirect(response.encodeRedirectURL(uri));



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


Mime
View raw message