You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2026/09/30 10:17:34 UTC
(tomcat) branch 11.0.x updated: Fix registration test
This is an automated email from the ASF dual-hosted git repository.
rmaucher pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/11.0.x by this push:
new 27fe312dd3 Fix registration test
27fe312dd3 is described below
commit 27fe312dd3714163d106c89ec468d25f74d1926a
Author: remm <re...@apache.org>
AuthorDate: Wed Sep 30 12:17:19 2026 +0200
Fix registration test
---
java/org/apache/catalina/core/ApplicationServletRegistration.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/java/org/apache/catalina/core/ApplicationServletRegistration.java b/java/org/apache/catalina/core/ApplicationServletRegistration.java
index f5bd7ebe72..052092a090 100644
--- a/java/org/apache/catalina/core/ApplicationServletRegistration.java
+++ b/java/org/apache/catalina/core/ApplicationServletRegistration.java
@@ -181,7 +181,7 @@ public class ApplicationServletRegistration implements ServletRegistration.Dynam
String[] decodedUrlPatterns = new String[urlPatterns.length];
for (int i = 0; i < urlPatterns.length; i++) {
- if (urlPatterns[i] == null) {
+ if (urlPatterns[i] == null || urlPatterns[i].isEmpty()) {
throw new IllegalArgumentException(sm.getString("applicationServletRegistration.nullUrlPattern"));
}
if (context.getUrlPatternsProvidedInDecodedForm()) {
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org