From bae6d234b611bad39a872e017a611c2ad446aa12 Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Mon, 28 Jun 2021 15:46:47 +1000 Subject: [PATCH] canonicalPath Refactor HttpURI throws IAE rather than BME --- jetty-http/src/main/java/org/eclipse/jetty/http/HttpURI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jetty-http/src/main/java/org/eclipse/jetty/http/HttpURI.java b/jetty-http/src/main/java/org/eclipse/jetty/http/HttpURI.java index 95a3a9e8f245..5dc6db1302aa 100644 --- a/jetty-http/src/main/java/org/eclipse/jetty/http/HttpURI.java +++ b/jetty-http/src/main/java/org/eclipse/jetty/http/HttpURI.java @@ -744,7 +744,7 @@ else if (_path != null) String decodeNonCanonical = URIUtil.decodePath(_path); _decodedPath = URIUtil.canonicalPath(decodeNonCanonical); if (_decodedPath == null) - throw new BadMessageException("Bad URI"); + throw new IllegalArgumentException("Bad URI"); } }