This is an automated email from the ASF dual-hosted git repository. rmaucher pushed a commit to branch 10.1.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 958d7ef69ab8fa295babdba33c3e94a9695dc832 Author: opencode <[email protected]> AuthorDate: Fri Oct 16 13:51:30 2026 +0200 Report the resource path when a WEB-INF/lib JAR cannot be scanned When scanning WEB-INF/lib, the debug message, the warning for a null resource and the trace message for a skipped JAR all identify the JAR by its web application relative path. The warning for an IOException used the URL local variable instead. That variable is still null if it is the getResource() call itself that fails, and a full URL is redundant in a message that already states the JAR came from /WEB-INF/lib. Use the path in this message as well so every log message from the loop identifies the JAR the same way. --- java/org/apache/tomcat/util/scan/StandardJarScanner.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/org/apache/tomcat/util/scan/StandardJarScanner.java b/java/org/apache/tomcat/util/scan/StandardJarScanner.java index da1fa5468b..c0df03db83 100644 --- a/java/org/apache/tomcat/util/scan/StandardJarScanner.java +++ b/java/org/apache/tomcat/util/scan/StandardJarScanner.java @@ -259,7 +259,7 @@ public class StandardJarScanner implements JarScanner { log.warn(sm.getString("jarScan.webinflibFail", path)); } } catch (IOException ioe) { - log.warn(sm.getString("jarScan.webinflibFail", url), ioe); + log.warn(sm.getString("jarScan.webinflibFail", path), ioe); } } else { if (log.isTraceEnabled()) { --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
