shuan1026 opened a new pull request, #10899: URL: https://github.com/apache/ozone/pull/10899
## What changes were proposed in this pull request? Ozone S3G does not support GetObjectTorrent (`GET ...?torrent`). Today the request falls through to GetObject and returns **200 OK with the raw object bytes**, which misleads clients and fails ceph s3-tests `test_get_object_torrent` (`assert data != _get_body(response)` when the body matches the uploaded payload). This PR mirrors `BucketGetLocationHandler`: register `ObjectGetTorrentHandler` first on the object GET chain, detect `?torrent`, and return `501 NotImplemented` before GetObject runs. BitTorrent/bencode generation is out of scope. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-16004 ## How was this patch tested? - `mvn -pl :ozone-s3gateway test -Dtest=TestObjectGetTorrent,TestObjectGet` - `ozone-s3gateway` test module (701 tests, no regressions) - `checkstyle.sh` (0 violations) -- 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]
