reta commented on code in PR #3802:
URL: https://github.com/apache/cxf/pull/3802#discussion_r4740043477


##########
rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/AbstractHTTPServlet.java:
##########
@@ -376,11 +382,13 @@ protected void serveStaticContent(HttpServletRequest 
request,
                                       String pathInfo) throws ServletException 
{
         String path = UrlUtils.normalizePath(pathInfo);
         if (path == null || isProtectedPath(path)) {
-            throw new ServletException("Static resource " + pathInfo + " is 
not available");
+            sendNotFound(response);

Review Comment:
   I think 404 is valid and more appropriate, but it may somewhat disruptive 
since we return 500 before  



-- 
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]

Reply via email to