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 6af7a55e1 TIKA-4525: remove workaround that is only needed for
putObject
6af7a55e1 is described below
commit 6af7a55e1e39c38cca517057988254cef484c60b
Author: Tilman Hausherr <[email protected]>
AuthorDate: Fri Oct 24 10:22:16 2025 +0200
TIKA-4525: remove workaround that is only needed for putObject
---
.../src/main/java/org/apache/tika/pipes/fetcher/s3/S3Fetcher.java | 2 --
.../java/org/apache/tika/pipes/pipesiterator/s3/S3PipesIterator.java | 2 --
2 files changed, 4 deletions(-)
diff --git
a/tika-pipes/tika-fetchers/tika-fetcher-s3/src/main/java/org/apache/tika/pipes/fetcher/s3/S3Fetcher.java
b/tika-pipes/tika-fetchers/tika-fetcher-s3/src/main/java/org/apache/tika/pipes/fetcher/s3/S3Fetcher.java
index c6dba4201..e0d6e011f 100644
---
a/tika-pipes/tika-fetchers/tika-fetcher-s3/src/main/java/org/apache/tika/pipes/fetcher/s3/S3Fetcher.java
+++
b/tika-pipes/tika-fetchers/tika-fetcher-s3/src/main/java/org/apache/tika/pipes/fetcher/s3/S3Fetcher.java
@@ -40,7 +40,6 @@ import
software.amazon.awssdk.auth.credentials.ProfileCredentialsProvider;
import software.amazon.awssdk.auth.credentials.StaticCredentialsProvider;
import software.amazon.awssdk.awscore.exception.AwsServiceException;
import software.amazon.awssdk.core.ResponseInputStream;
-import software.amazon.awssdk.core.checksums.RequestChecksumCalculation;
import software.amazon.awssdk.core.exception.SdkClientException;
import software.amazon.awssdk.http.SdkHttpClient;
import software.amazon.awssdk.http.SdkHttpConfigurationOption;
@@ -391,7 +390,6 @@ public class S3Fetcher extends AbstractFetcher implements
Initializable, RangeFe
try {
synchronized (clientLock) {
S3ClientBuilder s3ClientBuilder =
S3Client.builder().httpClient(httpClient).
-
requestChecksumCalculation(RequestChecksumCalculation.WHEN_REQUIRED). //
https://stackoverflow.com/a/79488850/535646
serviceConfiguration(clientConfig).credentialsProvider(provider);
if (!StringUtils.isBlank(endpointConfigurationService)) {
try {
diff --git
a/tika-pipes/tika-pipes-iterators/tika-pipes-iterator-s3/src/main/java/org/apache/tika/pipes/pipesiterator/s3/S3PipesIterator.java
b/tika-pipes/tika-pipes-iterators/tika-pipes-iterator-s3/src/main/java/org/apache/tika/pipes/pipesiterator/s3/S3PipesIterator.java
index 622755e9f..4a63046f6 100644
---
a/tika-pipes/tika-pipes-iterators/tika-pipes-iterator-s3/src/main/java/org/apache/tika/pipes/pipesiterator/s3/S3PipesIterator.java
+++
b/tika-pipes/tika-pipes-iterators/tika-pipes-iterator-s3/src/main/java/org/apache/tika/pipes/pipesiterator/s3/S3PipesIterator.java
@@ -34,7 +34,6 @@ import
software.amazon.awssdk.auth.credentials.AwsCredentialsProvider;
import
software.amazon.awssdk.auth.credentials.InstanceProfileCredentialsProvider;
import software.amazon.awssdk.auth.credentials.ProfileCredentialsProvider;
import software.amazon.awssdk.auth.credentials.StaticCredentialsProvider;
-import software.amazon.awssdk.core.checksums.RequestChecksumCalculation;
import software.amazon.awssdk.core.exception.SdkClientException;
import software.amazon.awssdk.http.SdkHttpClient;
import software.amazon.awssdk.http.SdkHttpConfigurationOption;
@@ -171,7 +170,6 @@ public class S3PipesIterator extends PipesIterator
implements Initializable {
S3Configuration clientConfig =
S3Configuration.builder().pathStyleAccessEnabled(pathStyleAccessEnabled).build();
try {
S3ClientBuilder s3ClientBuilder =
S3Client.builder().httpClient(httpClient).
-
requestChecksumCalculation(RequestChecksumCalculation.WHEN_REQUIRED). //
https://stackoverflow.com/a/79488850/535646
serviceConfiguration(clientConfig).credentialsProvider(provider);
if (!StringUtils.isBlank(endpointConfigurationService)) {
try {