benroeder opened a new issue, #7207:
URL: https://github.com/apache/opendal/issues/7207
## Describe the bug
The Swift backend does not support conditional request headers (If-Match,
If-None-Match, If-Modified-Since, If-Unmodified-Since) on stat or read
operations. The capability flags are missing and the headers are not forwarded.
HTTP 304 Not Modified is also not mapped to `ConditionNotMatch`.
## Steps to Reproduce
1. Configure a Swift backend
2. Attempt `op.stat_with("file.txt").if_match("some-etag").await`
3. The conditional header is silently ignored
## Expected Behavior
Conditional headers should be forwarded to Swift. If the condition fails,
Swift returns 304 or 412, which should map to `ConditionNotMatch`.
--
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]