This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git

commit 8dca17050f28726eaee76b300d34ccda2f1430a2
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

Reply via email to