chitralverma opened a new issue, #9413:
URL: https://github.com/apache/opendal/issues/9413
### 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
1. Start the server from `fixtures/s3`. Create bucket `test` with objects
`src` and `dst`.
2. Copy onto `dst`:
```sh
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
```
3. Repeat with `-H 'If-Match: "x"'`.
4. Remove `copy_with_if_not_exists=false,copy_with_if_match=false` from the
CI overrides and run `OPENDAL_TEST=s3 cargo test --test behavior --features
tests,services-s3 -- with_if`.
### Actual Behavior
- Steps 2 and 3 return `200 OK`. `dst` holds the source bytes.
- `test_copy_with_if_not_exists_to_existing_file` and
`test_copy_with_if_match_mismatch` fail on both servers.
`test_copier_with_if_not_exists_to_existing_file` also 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.md` documents the same gap for Neon. `minio.md` does not.
Questions:
1. Should the MinIO preset withhold both capabilities? An ignored
precondition can lose data.
2. Or should `minio.md` document the gap?
3. Should the CI overrides state a reason?
### Reproduction confirmation
- [x] I reproduced this issue against the actual service.
*This comment is AI assisted.*
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]