benroeder opened a new issue, #7203:
URL: https://github.com/apache/opendal/issues/7203
## Describe the bug
The Swift backend implements the `copy()` method in `Access` (via
`swift_copy` using PUT with `X-Copy-From`), but the `Capability` struct in
`backend.rs` does not include `copy: true`.
OpenDAL's framework checks capabilities before dispatching operations to the
backend. Without the flag, any `copy()` call is rejected with a "not supported"
error before the implementation is ever reached.
## Steps to Reproduce
1. Configure a Swift backend
2. Attempt `op.copy("source.txt", "dest.txt").await`
3. Operation fails with capability error despite the backend having a
working `copy()` implementation
## Expected Behavior
Server-side copy should succeed, since the implementation exists and Swift
supports COPY via `PUT` with `X-Copy-From` header.
## Additional Context
One-line fix: add `copy: true` to the `Capability` struct in
`core/services/swift/src/backend.rs`.
--
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]