You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2023/06/26 16:02:00 UTC

[tomcat] branch 8.5.x updated: Remove unnecessary exception wrapping

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

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


The following commit(s) were added to refs/heads/8.5.x by this push:
     new faa450ac3f Remove unnecessary exception wrapping
faa450ac3f is described below

commit faa450ac3fd6c1039c20deafb7610060919272b7
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Mon Jun 26 17:01:36 2023 +0100

    Remove unnecessary exception wrapping
---
 java/org/apache/catalina/connector/Request.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/java/org/apache/catalina/connector/Request.java b/java/org/apache/catalina/connector/Request.java
index 6418b8c269..276343415c 100644
--- a/java/org/apache/catalina/connector/Request.java
+++ b/java/org/apache/catalina/connector/Request.java
@@ -2906,7 +2906,7 @@ public class Request implements HttpServletRequest {
                 partsParseException = new IllegalStateException(e);
             } catch (IOException e) {
                 parameters.setParseFailedReason(FailReason.IO_ERROR);
-                partsParseException = new IOException(e);
+                partsParseException = e;
             } catch (IllegalStateException e) {
                 // addParameters() will set parseFailedReason
                 checkSwallowInput();


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org