Can org.springframework.web.servlet.FrameworkServlet.processRequest be
altered to not wrap runtime exceptions? It should be able to re-throw
them just like ServletException and IOException unless there are
backward compatability issues.
http://opensource2.atlassian.com/projects/spring/browse/SEC-199
Index: FrameworkServlet.java
===================================================================
RCS file:
/cvsroot/springframework/spring/src/org/springframework/web/servlet/FrameworkServlet.java,v
retrieving revision 1.36
diff -u -r1.36 FrameworkServlet.java
--- FrameworkServlet.java 5 Jan 2006 12:11:14 -0000 1.36
+++ FrameworkServlet.java 14 Mar 2006 08:35:12 -0000
@@ -403,6 +403,10 @@
failureCause = ex;
throw ex;
}
+ catch (RuntimeException ex) {
+ failureCause = ex;
+ throw ex;
+ }
catch (Throwable ex) {
failureCause = ex;
throw new NestedServletException("Request processing failed", ex);
|