bug(services/s3): Silo and MinIO ignore conditional headers on CopyObject
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
Research direction
Start with the S3 service capability declarations, the Silo and MinIO CI overrides, and the behavior tests named in the report: test_copy_with_if_not_exists_to_existing_file, test_copy_with_if_match_mismatch, and test_copier_with_if_not_exists_to_existing_file. Compare CopyObject behavior with PutObject and CompleteMultipartUpload, then check the AWS API expectations. Done when the preset capabilities and CI documentation accurately reflect the reproduced behavior, with relevant tests passing.
Written by the indexing model from the issue text.
Description
OpenDAL version or commit
main, commit 7d8274246
Affected service or component
services/s3 (MinIO preset) against Silo RELEASE.2026-09-16T00-00-00Z and MinIO RELEASE.2024-09-22T00-33-43Z
Describe the bug
The S3 service advertises copy_with_if_not_exists and copy_with_if_match. Silo and MinIO ignore If-None-Match: * and If-Match on CopyObject and overwrite the destination. They honor If-None-Match: * on PutObject and CompleteMultipartUpload. So a small copy overwrites silently, but a multipart copy is protected.
Steps to Reproduce
- Start the server from
fixtures/s3. Create buckettestwith objectssrcanddst. - Copy onto
dst:curl --aws-sigv4 "aws:amz:us-east-1:s3" --user minioadmin:minioadmin \ -H "x-amz-content-sha256: UNSIGNED-PAYLOAD" -H "If-None-Match: *" \ -H "x-amz-copy-source: /test/src" -X PUT http://127.0.0.1:9000/test/dst - Repeat with
-H 'If-Match: "x"'. - Remove
copy_with_if_not_exists=false,copy_with_if_match=falsefrom the CI overrides and runOPENDAL_TEST=s3 cargo test --test behavior --features tests,services-s3 -- with_if.
Actual Behavior
- Steps 2 and 3 return
200 OK.dstholds the source bytes. test_copy_with_if_not_exists_to_existing_fileandtest_copy_with_if_match_mismatchfail on both servers.test_copier_with_if_not_exists_to_existing_filealso fails on MinIO.
Expected Behavior
Steps 2 and 3 return 412 Precondition Failed and keep dst, as the AWS CopyObject API documents. Real AWS S3 was not tested.
Additional Context
- The Silo and MinIO CI setups disable both capabilities. #7600 added these overrides without a reason, so CI hides the gap.
neon.mddocuments the same gap for Neon.minio.mddoes not.
Questions:
- Should the MinIO preset withhold both capabilities? An ignored precondition can lose data.
- Or should
minio.mddocument the gap? - Should the CI overrides state a reason?
Reproduction confirmation
- I reproduced this issue against the actual service.
This comment is AI assisted.
- Dominant language
- Rust
- Stars
- 5.5k
- Forks
- 869
- Avg merge
- 8h 2m
- Merged PRs (30d)
- 862
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/opendal
-
bug(services/fs): deleting "/" removes the configured root directoryPossibly taken @xgbtxy claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 81/100
apache/opendal#9635 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
core enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
apache/opendal#9572 · 1 reaction ·
Maintainers usually reply within 1 day
-
fix(bindings/nodejs): reject negative and overflowing BigInt values in WriteOptions.chunk and Read/ReaderOptions.gapPossibly taken @rohan4naik claimed this today. Openbindings/nodejs bug
Difficulty 3/5 1-2 days Newbie friendliness 76/100
apache/opendal#9569 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
bug(layers/throttle): throttle streaming ReadStream bytes instead of pre-charging ReadOptions::limit upper bounds on open()Possibly taken @Xuanwo claimed this today. Openbug core
Difficulty 5/5 Over a week Newbie friendliness 25/100
apache/opendal#9567 · 1 reaction ·
Maintainers usually reply within 1 day
-
bindings/c bindings/dotnet bindings/go bindings/java bindings/python bindings/ruby core integrations/object_store release release-blocker services/azblob services/azdls services/dropbox services/gcs_grpc services/git services/hf3fs services/redis services/remotestorage services/s3 website
Difficulty 5/5 Over a week Newbie friendliness 20/100
apache/opendal#9560 · 3 comments · 1 reaction ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Choochmeque/tauri-plugin-webdriver#134 ·
Maintainers usually reply within 17 days
-
bug rust SDK & CLI & REST API
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
boxlite-ai/boxlite#3292 ·
Maintainers usually reply within 1 day
-
Android bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
anefzaoui/misterdownloadmanager#2516 ·
Maintainers usually reply within 1 day
-
editor ui
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
state:triage tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 89/100
agent8-cash/ethpayserver#731 ·
Maintainers usually reply within 1 day