|
From: Ivan R. <iv...@we...> - 2003-09-05 11:47:12
|
Right now, when a MultiActionController can't find the handler
for the request it throws an instance of ServletException. This
exception is then propagated back to the user.
I propose that we change this exception into a HTTP 404 Not found
error (which makes perfect sense to me). Or even better, allow the
servlet to make that decision. Something along the lines of
letting the NoSuchRequestHandlingMethodException (or some alternative
exception) propagate to reach the servlet, which could catch it if
it wants to.
A part of MultiActionController.java:
try {
String name = methodNameResolver.getHandlerMethodName(request);
return invokeNamedMethod(name, request, response);
}
catch (NoSuchRequestHandlingMethodException ex) {
throw new ServletException("No handler", ex);
}
--
ModSecurity (http://www.modsecurity.org)
[ Open source IDS for Web applications ]
|