fix use of canonicalPath after #8343
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
parent
f81bdc9711
commit
e6db23afc5
|
@ -670,7 +670,7 @@ public class ContextHandler extends Handler.Wrapper implements Attributes, Grace
|
|||
{
|
||||
if (isStarted())
|
||||
throw new IllegalStateException(getState());
|
||||
_contextPath = URIUtil.normalizePath(contextPath);
|
||||
_contextPath = URIUtil.canonicalPath(contextPath);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -775,7 +775,7 @@ public class ServletHandler extends Handler.Wrapper
|
|||
|
||||
ServletMapping mapping = new ServletMapping();
|
||||
mapping.setServletName(servlet.getName());
|
||||
mapping.setPathSpec(URIUtil.normalizePath(pathSpec));
|
||||
mapping.setPathSpec(URIUtil.canonicalPath(pathSpec));
|
||||
setServletMappings(ArrayUtil.addToArray(getServletMappings(), mapping, ServletMapping.class));
|
||||
}
|
||||
catch (RuntimeException e)
|
||||
|
@ -887,7 +887,7 @@ public class ServletHandler extends Handler.Wrapper
|
|||
|
||||
FilterMapping mapping = new FilterMapping();
|
||||
mapping.setFilterName(holder.getName());
|
||||
mapping.setPathSpec(URIUtil.normalizePath(pathSpec));
|
||||
mapping.setPathSpec(URIUtil.canonicalPath(pathSpec));
|
||||
mapping.setDispatcherTypes(dispatches);
|
||||
addFilterMapping(mapping);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue