You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2022/11/18 16:49:57 UTC
[tomcat] branch main updated: Additional change required to support new error dispatch attribute
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new 511d7256e5 Additional change required to support new error dispatch attribute
511d7256e5 is described below
commit 511d7256e566fe5deef724bd9b90e911fe3241ce
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Fri Nov 18 16:49:48 2022 +0000
Additional change required to support new error dispatch attribute
---
java/org/apache/jasper/runtime/PageContextImpl.java | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/java/org/apache/jasper/runtime/PageContextImpl.java b/java/org/apache/jasper/runtime/PageContextImpl.java
index d2d7e90692..e3388f0aa7 100644
--- a/java/org/apache/jasper/runtime/PageContextImpl.java
+++ b/java/org/apache/jasper/runtime/PageContextImpl.java
@@ -595,10 +595,9 @@ public class PageContextImpl extends PageContext {
request.setAttribute(PageContext.EXCEPTION, t);
request.setAttribute(RequestDispatcher.ERROR_STATUS_CODE,
Integer.valueOf(HttpServletResponse.SC_INTERNAL_SERVER_ERROR));
- request.setAttribute(RequestDispatcher.ERROR_REQUEST_URI,
- ((HttpServletRequest) request).getRequestURI());
- request.setAttribute(RequestDispatcher.ERROR_SERVLET_NAME,
- config.getServletName());
+ request.setAttribute(RequestDispatcher.ERROR_REQUEST_URI, ((HttpServletRequest) request).getRequestURI());
+ request.setAttribute(RequestDispatcher.ERROR_QUERY_STRING, ((HttpServletRequest) request).getQueryString());
+ request.setAttribute(RequestDispatcher.ERROR_SERVLET_NAME, config.getServletName());
try {
forward(errorPageURL);
} catch (IllegalStateException ise) {
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org