diff --git a/AGENTS.md b/AGENTS.md index 2c9d5bf02..45999a4cb 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -98,3 +98,4 @@ Do not commit secrets or cloud credentials; prefer environment variables or vaul - NEVER create files unless they're absolutely necessary for achieving your goal - ALWAYS prefer editing an existing file to creating a new one - NEVER proactively create documentation files (*.md) or README files unless explicitly requested +- NEVER commit PR description files (e.g., PR_DESCRIPTION.md): These are temporary reference files for creating pull requests and should remain local only diff --git a/rustfs/src/storage/ecfs.rs b/rustfs/src/storage/ecfs.rs index a3e846c36..ffb36847c 100644 --- a/rustfs/src/storage/ecfs.rs +++ b/rustfs/src/storage/ecfs.rs @@ -2830,6 +2830,14 @@ impl S3 for FS { result } + #[instrument(level = "debug", skip(self, _req))] + async fn get_object_torrent(&self, _req: S3Request) -> S3Result> { + // Torrent functionality is not implemented in RustFS + // Per S3 API test expectations, return 404 NoSuchKey (not 501 Not Implemented) + // This allows clients to gracefully handle the absence of torrent support + Err(S3Error::new(S3ErrorCode::NoSuchKey)) + } + #[instrument(level = "debug", skip(self, req))] async fn head_bucket(&self, req: S3Request) -> S3Result> { let input = req.input; diff --git a/scripts/s3-tests/implemented_tests.txt b/scripts/s3-tests/implemented_tests.txt index 3eb8933a0..9df5e88dd 100644 --- a/scripts/s3-tests/implemented_tests.txt +++ b/scripts/s3-tests/implemented_tests.txt @@ -139,3 +139,4 @@ test_ranged_request_invalid_range test_set_multipart_tagging test_upload_part_copy_percent_encoded_key test_api_error_from_storage_error_mappings +test_get_object_torrent diff --git a/scripts/s3-tests/unimplemented_tests.txt b/scripts/s3-tests/unimplemented_tests.txt index 66a210755..bd7e62973 100644 --- a/scripts/s3-tests/unimplemented_tests.txt +++ b/scripts/s3-tests/unimplemented_tests.txt @@ -179,4 +179,3 @@ test_set_get_del_bucket_policy # Object attributes and torrent tests test_create_bucket_no_ownership_controls test_get_checksum_object_attributes -test_get_object_torrent