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


##########
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:
   The previous 500 wasn’t a deliberate status: it came from an uncaught 
ServletException, so the response varied by container and could include the 
request path. 404 matches what the container returns for the same path outside 
CXF. What I could do is not backport this to 4.1?



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