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

tilman pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tika.git


The following commit(s) were added to refs/heads/main by this push:
     new 6e3bdd9ba TIKA-4524: remove commented code
6e3bdd9ba is described below

commit 6e3bdd9baf8ffd093069ec9db38d4164ebb1fc5c
Author: Tilman Hausherr <[email protected]>
AuthorDate: Sat Oct 18 13:39:14 2025 +0200

    TIKA-4524: remove commented code
---
 .../apache/tika/pipes/s3/tests/S3PipeIntegrationTest.java    | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git 
a/tika-integration-tests/tika-pipes-s3-integration-tests/src/test/java/org/apache/tika/pipes/s3/tests/S3PipeIntegrationTest.java
 
b/tika-integration-tests/tika-pipes-s3-integration-tests/src/test/java/org/apache/tika/pipes/s3/tests/S3PipeIntegrationTest.java
index aef366fd7..5e0b81ab8 100644
--- 
a/tika-integration-tests/tika-pipes-s3-integration-tests/src/test/java/org/apache/tika/pipes/s3/tests/S3PipeIntegrationTest.java
+++ 
b/tika-integration-tests/tika-pipes-s3-integration-tests/src/test/java/org/apache/tika/pipes/s3/tests/S3PipeIntegrationTest.java
@@ -21,7 +21,6 @@ import java.io.InputStream;
 import java.net.URI;
 import java.net.URISyntaxException;
 import java.nio.charset.StandardCharsets;
-import java.security.MessageDigest;
 import java.security.NoSuchAlgorithmException;
 import java.time.Duration;
 import java.time.temporal.ChronoUnit;
@@ -91,16 +90,7 @@ class S3PipeIntegrationTest {
             testFiles.add(nextFileName);
             String s = "<html><body>body-of-" + nextFileName + 
"</body></html>";
             byte[] bytes = s.getBytes(StandardCharsets.US_ASCII);
-            // checksum must be done explicitely, or we get an exception:
-            // "The provided 'x-amz-content-sha256' header does not match what 
was computed"
-            // https://github.com/minio/minio/issues/17662
-            // https://github.com/minio/minio/issues/20845
-            MessageDigest md = MessageDigest.getInstance("SHA256");
-            //byte [] hash = md.digest(bytes);
-            //String enc64 = Base64.getEncoder().encodeToString(hash);
-            PutObjectRequest request = 
PutObjectRequest.builder().bucket(FETCH_BUCKET).key(nextFileName).
-                    
//checksumAlgorithm(ChecksumAlgorithm.SHA256).checksumSHA256(enc64).
-                    build();
+            PutObjectRequest request = 
PutObjectRequest.builder().bucket(FETCH_BUCKET).key(nextFileName).build();
             RequestBody requestBody = RequestBody.fromBytes(bytes);
             s3Client.putObject(request, requestBody);
         }

Reply via email to