tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Lamb <p...@oil-law.com>
Subject [PATCH] Form login loosing query string
Date Thu, 27 Jul 2000 16:44:22 GMT
I don't know if this is the right way to do it, but it does seem to fix the
query string being eaten with form based logins.

Paul Lamb

Index: AccessInterceptor.java
===================================================================
RCS file:
/home/cvspublic/jakarta-tomcat/src/share/org/apache/tomcat/request/AccessInt
erceptor.java,v
retrieving revision 1.13
diff -u -r1.13 AccessInterceptor.java
--- AccessInterceptor.java	2000/07/11 03:48:50	1.13
+++ AccessInterceptor.java	2000/07/27 16:38:02
@@ -389,9 +389,9 @@
 	}
 
 	session.setAttribute( "tomcat.auth.originalLocation",
-			      req.getRequestURI());
+
req.getRequestURI()+"?"+req.getQueryString());
 	if( debug > 0 )
-	    log("Redirect1: " + page  + " originalUri=" +
req.getRequestURI());
+	    log("Redirect1: " + page  + " originalUri=" +
req.getRequestURI()+"?"+req.getQueryString());
 
 	req.setAttribute("javax.servlet.error.message",
 			 page );
    log("Redirect1: " + page  + " originalUri=" +
req.getRequestURI()+"?"+req.getQueryString());

Mime
View raw message