This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit e25c07657e39ee474c234463d2647594532f4f0d 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 e8fdb67b9c..d7cd4798fb 100644 --- a/java/org/apache/tomcat/util/http/fileupload/disk/DiskFileItem.java +++ b/java/org/apache/tomcat/util/http/fileupload/disk/DiskFileItem.java @@ -377,8 +377,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