This is an automated email from the ASF dual-hosted git repository.
pvillard pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git
The following commit(s) were added to refs/heads/main by this push:
new 17b917796f NIFI-15542 Replaced deprecated
org.eclipse.jetty.http.BadMessageException with
org.eclipse.jetty.http.HttpException.RuntimeException
17b917796f is described below
commit 17b917796f5a74387e6609bfa5bdd92f1b986b43
Author: dan-s1 <[email protected]>
AuthorDate: Tue Feb 3 18:47:12 2026 +0000
NIFI-15542 Replaced deprecated org.eclipse.jetty.http.BadMessageException
with org.eclipse.jetty.http.HttpException.RuntimeException
This closes #10845.
Signed-off-by: Pierre Villard <[email protected]>
---
.../apache/nifi/web/server/connector/HostPortValidatorCustomizer.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/nifi-framework-bundle/nifi-framework/nifi-web/nifi-jetty/src/main/java/org/apache/nifi/web/server/connector/HostPortValidatorCustomizer.java
b/nifi-framework-bundle/nifi-framework/nifi-web/nifi-jetty/src/main/java/org/apache/nifi/web/server/connector/HostPortValidatorCustomizer.java
index d36304e71a..b8ec6cfd4f 100644
---
a/nifi-framework-bundle/nifi-framework/nifi-web/nifi-jetty/src/main/java/org/apache/nifi/web/server/connector/HostPortValidatorCustomizer.java
+++
b/nifi-framework-bundle/nifi-framework/nifi-web/nifi-jetty/src/main/java/org/apache/nifi/web/server/connector/HostPortValidatorCustomizer.java
@@ -16,7 +16,7 @@
*/
package org.apache.nifi.web.server.connector;
-import org.eclipse.jetty.http.BadMessageException;
+import org.eclipse.jetty.http.HttpException;
import org.eclipse.jetty.http.HttpFields;
import org.eclipse.jetty.http.HttpStatus;
import org.eclipse.jetty.http.HttpURI;
@@ -68,7 +68,7 @@ public class HostPortValidatorCustomizer implements
HttpConfiguration.Customizer
if (PORT_NOT_SPECIFIED == port || localSocketAddressPort == port
|| validPorts.contains(port)) {
customized = request;
} else {
- throw new
BadMessageException(HttpStatus.MISDIRECTED_REQUEST_421,
MISDIRECTED_REQUEST_REASON);
+ throw new
HttpException.RuntimeException(HttpStatus.MISDIRECTED_REQUEST_421,
MISDIRECTED_REQUEST_REASON);
}
} else {
customized = request;