This is an automated email from the ASF dual-hosted git repository.
rmaucher pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 9c5b6e529e Add clean IAE for missing host name
9c5b6e529e is described below
commit 9c5b6e529e752e405db456be2dface69c1595f29
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 c7ca88920a..5da43a58ea 100644
--- a/java/org/apache/tomcat/util/net/AbstractEndpoint.java
+++ b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
@@ -457,6 +457,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]