You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "jizezhang (via GitHub)" <gi...@apache.org> on 2026/05/01 07:06:50 UTC
[I] Default headers not signed for CompleteMultipartUpload [arrow-rs-object-store]
jizezhang opened a new issue, #708:
URL: https://github.com/apache/arrow-rs-object-store/issues/708
**Describe the bug**
<!--
A clear and concise description of what the bug is.
-->
When doing a multi-part upload with custom default headers, I got error
```
<Error><Code>AccessDenied</Code><Message>There were headers present in the request which were not signed</Message><HeadersNotSigned>x-amz-source-arn, x-amz-source-account</HeadersNotSigned><RequestId>S1M1M0EQ5CQ54ZJX</RequestId><HostId>GxzMeUORtnnBE+vW7Kvx7T3XTomOpT65svEnSR5PiF/ggePM3NkvkVG4bOrANC49aeL9c7jtfjUy269PDMsGjv2rcR7VO9Gp</HostId></Error>
```
**To Reproduce**
<!--
Steps to reproduce the behavior:
-->
```
use object_store::ClientOptions;
use object_store::HeaderMap;
use object_store::ObjectStoreExt;
use object_store::aws::AmazonS3Builder;
use object_store::path::Path;
use tracing_subscriber::EnvFilter;
#[tokio::main]
async fn main() {
tracing_subscriber::fmt()
.with_env_filter(EnvFilter::from_default_env())
.with_thread_ids(true)
.init();
let mut headers = HeaderMap::new();
headers.insert("x-amz-source-account", "123456789111".parse().unwrap());
headers.insert(
"x-amz-source-arn",
"arn:aws:s3:::source-bucket"
.parse()
.unwrap(),
);
let client = AmazonS3Builder::from_env()
.with_bucket_name("bucket-name")
.with_region("us-east-1")
.with_client_options(ClientOptions::new().with_default_headers(headers))
.build()
.unwrap();
let mut upload = client.put_multipart(&Path::from("test-mpu")).await.unwrap();
let res = upload.complete().await.unwrap();
println!("Upload complete: {:?}", res);
}
```
**Expected behavior**
<!--
A clear and concise description of what you expected to happen.
-->
Headers are signed. No error.
**Additional context**
<!--
Add any other context about the problem here.
-->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org