rich7420 opened a new pull request, #12202:
URL: https://github.com/apache/ozone/pull/12202
## What changes were proposed in this pull request?
Depends on #12200 (HDDS-17896), which has to be merged first. Until then
this PR also contains its commits; only the `HDDS-17895` commits belong here.
Adds S3 RenameObject to S3 Gateway: `PUT /{key}?renameObject` with the
`x-amz-rename-source` header renames an object within a bucket, using the OM
support from HDDS-17896.
- `ObjectRenameHandler` joins the object handler chain, so the request is no
longer answered with 501 for FSO buckets. OM still rejects it for other bucket
layouts, which gives 501.
- `If-None-Match: *` and `x-amz-rename-source-if-match` are supported, and
OM checks them as part of the rename. The other conditional headers get 501
instead of being ignored.
- `x-amz-rename-source` is read as a URL-encoded key of the same bucket,
with an optional leading slash.
- The S3 action sent to OM is `PutObject`; OM authorizes removing the source
as `DeleteObject`.
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-17895
## How was this patch tested?
Added tests in TestObjectRename and AbstractS3SDKV2Tests, and a case for the
S3 actions in ozone-secure-sts.robot.
Fork CI: https://github.com/rich7420/ozone/actions/runs/46401862307
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]