reta commented on code in PR #3626:
URL: https://github.com/apache/cxf/pull/3626#discussion_r4368849366
##########
rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/AbstractHTTPServlet.java:
##########
@@ -365,6 +365,10 @@ private static boolean matchPath(boolean checkRedirect,
List<Pattern> values, Ht
protected void serveStaticContent(HttpServletRequest request,
HttpServletResponse response,
String pathInfo) throws ServletException
{
+ if (isProtectedPath(pathInfo)) {
+ sendNotFound(response);
Review Comment:
404 is looking more appropriate, but the servlet behavior for non-existing
resources is `throw new ServletException("Static resource " + pathInfo + " is
not available");`, please let's do that instead
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]