Skip to content

Commit 54fd91e

Browse files
committed
FELIX-6777 : Wrong type of jakarta.servlet.error.exception_type attribute
1 parent 6858ded commit 54fd91e

File tree

1 file changed

+3
-3
lines changed
  • http/base/src/main/java/org/apache/felix/http/base/internal/dispatch

1 file changed

+3
-3
lines changed

http/base/src/main/java/org/apache/felix/http/base/internal/dispatch/Dispatcher.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -137,15 +137,15 @@ public void doFilter(final ServletRequest request, final ServletResponse respons
137137
final ExtServletContext servletContext = pr.handler.getContext();
138138
final RequestInfo requestInfo = new RequestInfo(pr.servletPath, pr.pathInfo, null, req.getRequestURI(),
139139
pr.handler.getName(), pr.matchedPattern, pr.matchValue, pr.match, false);
140-
140+
141141
MultipartConfig multipartConfig = pr.handler.getMultipartConfig();
142142
HttpServletRequest wrappedRequest;
143143
if(multipartConfig==null){
144144
wrappedRequest = new ServletRequestWrapper(req,
145145
servletContext,
146146
requestInfo,
147147
null,
148-
pr.handler.getServletInfo().isAsyncSupported());
148+
pr.handler.getServletInfo().isAsyncSupported());
149149
}else {
150150
wrappedRequest = new ServletRequestMultipartWrapper(req,
151151
servletContext,
@@ -174,7 +174,7 @@ public void doFilter(final ServletRequest request, final ServletResponse respons
174174
}
175175
SystemLogger.LOGGER.error("Exception while processing request to " + requestURI, e);
176176
req.setAttribute(RequestDispatcher.ERROR_EXCEPTION, e);
177-
req.setAttribute(RequestDispatcher.ERROR_EXCEPTION_TYPE, e.getClass().getName());
177+
req.setAttribute(RequestDispatcher.ERROR_EXCEPTION_TYPE, e.getClass());
178178

179179
if ( !wrappedResponse.isCommitted() )
180180
{

0 commit comments

Comments
 (0)