bug(services/s3): Silo and MinIO ignore conditional headers on CopyObject
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Rust
- Stelle
- 5.5k
- Fork
- 869
- Merge medio
- 8h 2m
- PR unite (30g)
- 862
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di apache/opendal
-
bug(services/fs): deleting "/" removes the configured root directoryForse già presa @xgbtxy l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 81/100
apache/opendal#9635 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
core enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
apache/opendal#9572 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
fix(bindings/nodejs): reject negative and overflowing BigInt values in WriteOptions.chunk and Read/ReaderOptions.gapForse già presa @rohan4naik l’ha presa oggi. Apertabindings/nodejs bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 76/100
apache/opendal#9569 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
bug(layers/throttle): throttle streaming ReadStream bytes instead of pre-charging ReadOptions::limit upper bounds on open()Forse già presa @Xuanwo l’ha presa oggi. Apertabug core
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
apache/opendal#9567 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
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
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
apache/opendal#9560 · 3 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di apache/opendal
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
Choochmeque/tauri-plugin-webdriver#134 ·
I maintainer di solito rispondono entro 17 giorni
-
bug(c-sdk): boxlite_box_exec does not check runtime liveness before dispatching streaming execApertabug rust SDK & CLI & REST API
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
boxlite-ai/boxlite#3292 ·
I maintainer di solito rispondono entro 1 giorno
-
Android bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
anefzaoui/misterdownloadmanager#2516 ·
I maintainer di solito rispondono entro 1 giorno
-
editor ui
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
state:triage tech-debt
Difficoltà 2/5 1-3 ore Idoneità per principianti 89/100
agent8-cash/ethpayserver#731 ·
I maintainer di solito rispondono entro 1 giorno