Support UploadPartCopy (multipart server-side copy): AWS CLI and boto3 use it for any copy over 8 MB
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
Start with build_copy_object in crates/core/src/api/request.rs and the existing execute_copy and UploadPart paths to trace parsing, authorization, dispatch, and signing. Then read the copy header forwarding and multipart tests, and update the unsupported notes in docs/reference/operations.md and docs/reference/errors.md. Done means same endpoint UploadPartCopy works through multipart completion with and without a source range, source access is authorized, cross endpoint copies remain rejected, and the requested tests pass.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What's needed
Support S3 UploadPartCopy: a PUT that carries x-amz-copy-source together with uploadId and partNumber. It copies a byte range of an existing object into a part of an in-progress multipart upload. CopyObject (#119, #121) works today. UploadPartCopy is still rejected with 501 NotImplemented.
Why it matters sooner than expected
The deferral note in crates/core/src/api/request.rs (build_copy_object) assumes UploadPartCopy is only needed for objects over the 5 GB single-request CopyObject limit:
// ponytail: UploadPartCopy deferred — same copy-source mechanism, but
// it targets an in-progress multipart upload. Add when a client needs
// server-side copy of objects larger than the 5 GB single-copy limit.
Standard clients use it far below that size. The AWS CLI (aws s3 cp / aws s3 mv / aws s3 sync between two S3 URLs) and boto3's managed copy() switch to a multipart copy (CreateMultipartUpload → UploadPartCopy × N → CompleteMultipartUpload) once the object exceeds multipart_threshold, which defaults to 8 MB. obstore/object_store and rclone also use multipart copy above their thresholds. So any copy or rename of an object over about 8 MB fails, while smaller objects copy fine. Users see that as "copy works for some files and not others".
From Source Cooperative's production proxy (data.source.coop) in the past week, two unrelated clients hit this:
- One was reorganising a dataset with server-side copies.
.parquetfiles tens of MB in size failed withnot implemented: server-side multipart copy (UploadPartCopy) is not supported, status=501, while their small files copied fine. - The other was copying a single GeoTIFF; its UploadPartCopy request (
PUT …?partNumber=1&uploadId=…) failed the same way.
Some clients then fall back to a download-and-reupload, or leave behind an orphaned multipart upload (the CreateMultipartUpload succeeded before the part copy failed).
Current behaviour
build_copy_objectincrates/core/src/api/request.rsreturnsProxyError::NotImplementedwhen the copy-source PUT has anuploadIdquery parameter.- That rejection is asserted by a test in the same file ("UploadPartCopy must be NotImplemented").
- It is documented as unsupported in
docs/reference/operations.mdanddocs/reference/errors.md.
Proposed approach
Most of the machinery already exists from CopyObject and multipart UploadPart:
- Add an
UploadPartCopy { bucket, key, upload_id, part_number, src_bucket, src_key, src_version }operation toS3Operation. Parse it inbuild_copy_objectinstead of rejecting, reusingparse_copy_sourceandvalidate_key. - Authorize it like CopyObject: the caller must be able to read the source (including its version) and write the destination. That covers the copy-source mapping via
RequestInfo::with_copy_sourceand the path-mapping / OIDC fixes from #128 and #129. - Dispatch it like
execute_copy. Use the same-endpoint check andbuild_copy_source_header, and build the backend URL as forUploadPart(?partNumber=&uploadId=). Sign it withsign_s3_request, and forwardx-amz-copy-source-rangeplus thex-amz-copy-source-if-*headers throughis_copy_forward_header. - The response is a small
CopyPartResultXML (ETag, LastModified) that can pass through unchanged. As with CopyObject, a200response can still carry an embedded<Error>; detect it the same way. - Cross-endpoint part copies stay
501, matching CopyObject. - Tests: a part copy round-trip (Create → UploadPartCopy with and without
x-amz-copy-source-range→ Complete), an authorization denial on the source, and a cross-endpoint rejection. Update the docs to match.
Acceptance
aws s3 cp s3://<bucket>/<key-larger-than-8MB> s3://<bucket>/<new-key> --endpoint-url <proxy> succeeds, and so does boto3 client.copy(...) on the same object.
- Ngôn ngữ chính
- Rust
- Star
- 21
- Fork
- 1
- Merge trung bình
- 16 giờ 39 phút
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của developmentseed/multistore
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
developmentseed/multistore#160 ·
-
List of a prefix 503s when a single object key contains an empty path segment (//)Có thể đã có người làm @alukach đã nhận 127 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
developmentseed/multistore#116 · 1 bình luận ·
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 68/100
-
oidc-provider: optional `oidc_session_name` backend-option to override RoleSessionName derivationĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
-
Credential cache key (role ARN) doesn't capture the full minted identity (subject + extra_claims)Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
Tất cả issue của developmentseed/multistore
Issue tương tự
-
insert: with validation on, `insert()` and `inserter()` fail for a table name that contains `?`Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
ClickHouse/clickhouse-rs#551 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
storytold/craft-anything#2472 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
getsotto/sotto-authenticator#68 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Project submission: AegisĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
slavakurilyak/awesome-ai-agents#1046 ·
-
gemini-api profile defaults to gemini-2.5-flash, which Google reroutes from 2026-12-01Có thể đã có người làm @EslamOsama00 đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 4 ngày