This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 57a1d961255265e42fe9c41c24ad62594ca0e547 Author: Mark Thomas <ma...@apache.org> AuthorDate: Fri Sep 15 22:50:44 2023 +0100 Throw original exception --- java/org/apache/tomcat/util/http/fileupload/disk/DiskFileItem.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/java/org/apache/tomcat/util/http/fileupload/disk/DiskFileItem.java b/java/org/apache/tomcat/util/http/fileupload/disk/DiskFileItem.java index b02edb35e1..225ce89d30 100644 --- a/java/org/apache/tomcat/util/http/fileupload/disk/DiskFileItem.java +++ b/java/org/apache/tomcat/util/http/fileupload/disk/DiskFileItem.java @@ -375,8 +375,6 @@ public class DiskFileItem if (isInMemory()) { try (OutputStream fout = Files.newOutputStream(file.toPath())) { fout.write(get()); - } catch (final IOException e) { - throw new IOException("Unexpected output data"); } } else { final File outputFile = getStoreLocation(); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org