You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by cz...@apache.org on 2025/05/10 06:41:28 UTC

(felix-dev) branch master updated: FELIX-6777 : Wrong type of jakarta.servlet.error.exception_type attribute

This is an automated email from the ASF dual-hosted git repository.

cziegeler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/felix-dev.git


The following commit(s) were added to refs/heads/master by this push:
     new 54fd91efa7 FELIX-6777 : Wrong type of jakarta.servlet.error.exception_type attribute
54fd91efa7 is described below

commit 54fd91efa7b59404e04f494a5bf9b3a3030c7198
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Sat May 10 09:41:23 2025 +0300

    FELIX-6777 : Wrong type of jakarta.servlet.error.exception_type attribute
---
 .../org/apache/felix/http/base/internal/dispatch/Dispatcher.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/http/base/src/main/java/org/apache/felix/http/base/internal/dispatch/Dispatcher.java b/http/base/src/main/java/org/apache/felix/http/base/internal/dispatch/Dispatcher.java
index e33dfc7156..d7c3eb6fde 100644
--- a/http/base/src/main/java/org/apache/felix/http/base/internal/dispatch/Dispatcher.java
+++ b/http/base/src/main/java/org/apache/felix/http/base/internal/dispatch/Dispatcher.java
@@ -137,7 +137,7 @@ public final class Dispatcher
 		        final ExtServletContext servletContext = pr.handler.getContext();
 		        final RequestInfo requestInfo = new RequestInfo(pr.servletPath, pr.pathInfo, null, req.getRequestURI(),
 		                pr.handler.getName(), pr.matchedPattern, pr.matchValue, pr.match, false);
-		        
+
 		        MultipartConfig multipartConfig = pr.handler.getMultipartConfig();
 		        HttpServletRequest wrappedRequest;
 		        if(multipartConfig==null){
@@ -145,7 +145,7 @@ public final class Dispatcher
 		        			servletContext,
 		        			requestInfo,
 		        			null,
-		        			pr.handler.getServletInfo().isAsyncSupported());		        	
+		        			pr.handler.getServletInfo().isAsyncSupported());
 		        }else {
 		        	wrappedRequest = new ServletRequestMultipartWrapper(req,
 		        			servletContext,
@@ -174,7 +174,7 @@ public final class Dispatcher
                     }
 		            SystemLogger.LOGGER.error("Exception while processing request to " + requestURI, e);
 		            req.setAttribute(RequestDispatcher.ERROR_EXCEPTION, e);
-		            req.setAttribute(RequestDispatcher.ERROR_EXCEPTION_TYPE, e.getClass().getName());
+		            req.setAttribute(RequestDispatcher.ERROR_EXCEPTION_TYPE, e.getClass());
 
                     if ( !wrappedResponse.isCommitted() )
                     {