tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Lamb <p...@oil-law.com>
Subject Tomcat 32 Form Patch
Date Thu, 17 Aug 2000 16:54:32 GMT
I'd like to petition/beg that the 1.14 AccessInterceptor patch that fixed
the query string problem with form based logins also be applied to the
tomcat_32 branch.

I don't think this will introduce any new problems. I've included the diff's
from the current AccessInterceptor below.

Paul Lamb



Index: AccessInterceptor.java
===================================================================
RCS file:
/home/cvspublic/jakarta-tomcat/src/share/org/apache/tomcat/request/AccessInt
erceptor.java,v
retrieving revision 1.12.2.3
diff -u -r1.12.2.3 AccessInterceptor.java
--- AccessInterceptor.java	2000/08/16 22:24:26	1.12.2.3
+++ AccessInterceptor.java	2000/08/17 16:47:57
@@ -465,10 +465,14 @@
 	    return;
 	}
 
+	String originalLocation = req.getRequestURI();
+	if (req.getQueryString() != null)
+	    originalLocation += "?" + req.getQueryString();
 	session.setAttribute( "tomcat.auth.originalLocation",
-			      req.getRequestURI());
+			      originalLocation);
 	if( debug > 0 )
 	    log("Redirect1: " + page  + " originalUri=" +
req.getRequestURI());
+
 
 	req.setAttribute("javax.servlet.error.message",
 			 page );

Mime
View raw message