diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2025-12-04 12:18:57 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-04 12:18:57 -0800 |
| commit | a5ab05ec03534a55e42116057be8bceed015cac0 (patch) | |
| tree | 9407b1181dd422d92f81b779b4490cafd1710efd /docker/test.py | |
| parent | 8d110b29ddfd9b9cdb504a4380106b2b287155ca (diff) | |
| download | seaweedfs-a5ab05ec03534a55e42116057be8bceed015cac0.tar.xz seaweedfs-a5ab05ec03534a55e42116057be8bceed015cac0.zip | |
fix: S3 GetObject/HeadObject with PartNumber should return object ETag, not part ETag (#7622)
AWS S3 behavior: when calling GetObject or HeadObject with the PartNumber
query parameter, the ETag header should still return the complete object's
ETag (e.g., 'abc123-4' for a 4-part multipart upload), not the individual
part's ETag.
The previous implementation incorrectly overrode the ETag with the part's
ETag, causing test_multipart_get_part to fail.
This fix removes the ETag override logic while keeping:
- x-amz-mp-parts-count header (correct)
- Content-Length adjusted to part size (correct)
- Range calculation for part boundaries (correct)
Diffstat (limited to 'docker/test.py')
0 files changed, 0 insertions, 0 deletions
