This is an automated email from the ASF dual-hosted git repository.
rmaucher pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new f66b66466f Add clean IAE for missing host name
f66b66466f is described below
commit f66b66466f8087938ebf1b67a56182008548b0d3
Author: remm <[email protected]>
AuthorDate: Wed May 20 11:51:44 2026 +0200
Add clean IAE for missing host name
---
java/org/apache/tomcat/util/net/AbstractEndpoint.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/java/org/apache/tomcat/util/net/AbstractEndpoint.java
b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
index 8da0517545..021a946ee9 100644
--- a/java/org/apache/tomcat/util/net/AbstractEndpoint.java
+++ b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
@@ -515,6 +515,9 @@ public abstract class AbstractEndpoint<S, U> {
* @param hostName The SSL host for which the configuration should be
reloaded. This must match a current SSL host
*/
public void reloadSslHostConfig(String hostName) {
+ if (hostName == null) {
+ throw new
IllegalArgumentException(sm.getString("endpoint.unknownSslHostName", ""));
+ }
// Host names are case-insensitive but stored/processed in lower case
// internally because they are used as keys in a ConcurrentMap where
// keys are compared in a case-sensitive manner.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]