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


##########
rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/AbstractHTTPServlet.java:
##########
@@ -122,9 +122,15 @@ public void init(ServletConfig servletConfig) throws 
ServletException {
         super.init(servletConfig);
 
         staticResourcesList = 
parseListSequence(servletConfig.getInitParameter(STATIC_RESOURCES_PARAMETER));
+        // custom protected paths are added to the defaults, they never 
replace them
         String protectedPaths = 
servletConfig.getInitParameter(STATIC_RESOURCES_PROTECTED_PATHS_PARAMETER);
         staticResourcesProtectedPathList = parseListSequence(protectedPaths != 
null
-            ? protectedPaths : DEFAULT_STATIC_RESOURCES_PROTECTED_PATHS);
+            ? DEFAULT_STATIC_RESOURCES_PROTECTED_PATHS + " " + protectedPaths
+            : DEFAULT_STATIC_RESOURCES_PROTECTED_PATHS);
+        if (staticResourcesList != null && !staticResourcesList.isEmpty()) {
+            LOG.warning(new 
org.apache.cxf.common.i18n.Message("STATIC_RESOURCES_CLASSPATH_WIDE",

Review Comment:
   Yeah fair enough, I'll drop that from the PR.



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