This is an automated email from the ASF dual-hosted git repository.
elek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hadoop-ozone.git
The following commit(s) were added to refs/heads/master by this push:
new fb3902f HDDS-3512. s3g multi-part-upload saved incorrect content
using streaming (#1092)
fb3902f is described below
commit fb3902f6a90d10df9c03f3a2ff50b2810b48541f
Author: Sammi Chen <[email protected]>
AuthorDate: Wed Jun 24 22:33:37 2020 +0800
HDDS-3512. s3g multi-part-upload saved incorrect content using streaming
(#1092)
---
.../java/org/apache/hadoop/ozone/s3/endpoint/ObjectEndpoint.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git
a/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/ObjectEndpoint.java
b/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/ObjectEndpoint.java
index f695fcb..6f0ea57 100644
---
a/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/ObjectEndpoint.java
+++
b/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/ObjectEndpoint.java
@@ -515,6 +515,12 @@ public class ObjectEndpoint extends EndpointBase {
OzoneBucket ozoneBucket = getBucket(bucket);
String copyHeader;
OzoneOutputStream ozoneOutputStream = null;
+
+ if ("STREAMING-AWS4-HMAC-SHA256-PAYLOAD"
+ .equals(headers.getHeaderString("x-amz-content-sha256"))) {
+ body = new SignedChunksInputStream(body);
+ }
+
try {
ozoneOutputStream = ozoneBucket.createMultipartKey(
key, length, partNumber, uploadID);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]