You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by gg...@apache.org on 2018/08/14 04:04:05 UTC
httpcomponents-core git commit: [HTTPCORE-550] When a ParseException
is caught and rethrown as an IOException in
org.apache.http.impl.nio.codecs.ChunkDecoder.processFooters(),
the IOException does not chain the original ParseException.
Repository: httpcomponents-core
Updated Branches:
refs/heads/4.4.x 3606ac444 -> 60f83473b
[HTTPCORE-550] When a ParseException is caught and rethrown as an
IOException in org.apache.http.impl.nio.codecs.ChunkDecoder.processFooters(),
the IOException does not chain the original ParseException.
Project: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/commit/60f83473
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/60f83473
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/60f83473
Branch: refs/heads/4.4.x
Commit: 60f83473b8c93c51f19c20f0f86d6f1c8a93dec8
Parents: 3606ac4
Author: Gary Gregory <ga...@gmail.com>
Authored: Mon Aug 13 22:04:01 2018 -0600
Committer: Gary Gregory <ga...@gmail.com>
Committed: Mon Aug 13 22:04:01 2018 -0600
----------------------------------------------------------------------
RELEASE_NOTES.txt | 4 ++++
.../main/java/org/apache/http/impl/nio/codecs/ChunkDecoder.java | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/60f83473/RELEASE_NOTES.txt
----------------------------------------------------------------------
diff --git a/RELEASE_NOTES.txt b/RELEASE_NOTES.txt
index 6ebc2db..a0ee530 100644
--- a/RELEASE_NOTES.txt
+++ b/RELEASE_NOTES.txt
@@ -11,6 +11,10 @@ Changelog
* Fix typos in exception messages.
Contributed by Gary Gregory <ggregory at apache.org>
+
+* HTTPCORE-550: When a ParseException is caught and rethrown as an IOException in org.apache.http.impl.nio.codecs.ChunkDecoder.processFooters(), the IOException does not chain the original ParseException.
+ Contributed by Gary Gregory <ggregory at apache.org>
+
Release 4.4.10
http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/60f83473/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/ChunkDecoder.java
----------------------------------------------------------------------
diff --git a/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/ChunkDecoder.java b/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/ChunkDecoder.java
index 77e05dd..6cd8adb 100644
--- a/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/ChunkDecoder.java
+++ b/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/ChunkDecoder.java
@@ -174,7 +174,7 @@ public class ChunkDecoder extends AbstractContentDecoder {
try {
this.footers[i] = new BufferedHeader(this.trailerBufs.get(i));
} catch (final ParseException ex) {
- throw new IOException(ex.getMessage());
+ throw new IOException(ex);
}
}
}