You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Paul Lamb <pa...@oil-law.com> on 2000/08/17 18:54:32 UTC
Tomcat 32 Form Patch
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 );