Skip to content

HDDS-16004. Return NotImplemented for GetObjectTorrent instead of GetObject body - #10899

Open
shuan1026 wants to merge 1 commit into
apache:masterfrom
shuan1026:HDDS-16004
Open

HDDS-16004. Return NotImplemented for GetObjectTorrent instead of GetObject body#10899
shuan1026 wants to merge 1 commit into
apache:masterfrom
shuan1026:HDDS-16004

Conversation

@shuan1026

@shuan1026 shuan1026 commented Jul 29, 2026

Copy link
Copy Markdown

What changes were proposed in this pull request?

Ozone S3G does not support GetObjectTorrent (GET ...?torrent). Currently 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)

@shuan1026

Copy link
Copy Markdown
Author

PTAL @chungen0126 Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant