You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ti...@apache.org on 2025/10/18 11:38:26 UTC

(tika) 02/02: TIKA-4524: remove commented code

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

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

commit fcfc62e9bedbf17b29be88975c230926fa9a4b23
Author: Tilman Hausherr <ti...@apache.org>
AuthorDate: Sat Oct 18 13:38:12 2025 +0200

    TIKA-4524: remove commented code
---
 .../org/apache/tika/pipes/s3/tests/S3PipeIntegrationTest.java  | 10 +---------
 1 file changed, 1 insertion(+), 9 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 aca387ed0..2054640ef 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
@@ -91,16 +91,8 @@ 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);
         }