Skip to content
Snippets Groups Projects
Commit 3e0c08f5 authored by srosse's avatar srosse
Browse files

no-jira: don't send error page if mapper is missing, only error code

parent ec7404ea
No related branches found
No related tags found
No related merge requests found
......@@ -98,14 +98,14 @@ public class MapperDispatcher implements Dispatcher {
m = mapperService.getMapperById(null, smappath);
if(m == null) {
log.warn("Call to mapped resource, but mapper does not exist for path::" + smappath);
DispatcherModule.sendNotFound(pathInfo, hres);
hres.setStatus(HttpServletResponse.SC_NOT_FOUND);
return;
}
}
String mod = slashPos > 0 ? subInfo.substring(slashPos) : "";
if (mod.indexOf("..") != -1) {
log.warn("Illegal mapper path::" + mod + " contains '..'");
DispatcherModule.sendForbidden(pathInfo, hres);
hres.setStatus(HttpServletResponse.SC_FORBIDDEN);
return;
}
// /bla/blu.html
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment