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
The following commit(s) were added to refs/heads/10.1.x by this push:
new 27c9d0f0ef Add clean IAE for missing host name
27c9d0f0ef is described below
commit 27c9d0f0ef2a6057ca3711db6e206c21a419e414
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 a8b243d909..5d8b02d35f 100644
--- a/java/org/apache/tomcat/util/net/AbstractEndpoint.java
+++ b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
@@ -443,6 +443,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]