Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fixes GetObject and UploadPartCopy actions data range parsing. #1124

Merged
merged 1 commit into from
Mar 7, 2025

Conversation

niksis02
Copy link
Contributor

@niksis02 niksis02 commented Mar 7, 2025

Fixes #1004
Fixes #1122
Fixes #1120

Separates GetObject and UploadPartCopy range parsing/validation.

GetObject returns a successful response if acceptRange is invalid.
Adjusts the range upper limit, if it exceeds the actual objects size for GetObject.
Corrects the ContentRange in the GetObject response.

Fixes the UploadPartCopy action copy source range parsing/validation.
UploadPartCopy returns InvalidArgument if the copy source range is not valid.

@niksis02 niksis02 force-pushed the sis/getobject-exceeding-range branch from e7a608e to 029b55f Compare March 7, 2025 20:39
@niksis02 niksis02 requested a review from benmcclelland March 7, 2025 20:57
Fixes #1004
Fixes #1122
Fixes #1120

Separates `GetObject` and `UploadPartCopy` range parsing/validation.

`GetObject` returns a successful response if acceptRange is invalid.
Adjusts the range upper limit, if it exceeds the actual objects size for `GetObject`.
Corrects the `ContentRange` in the `GetObject` response.

Fixes the `UploadPartCopy` action copy source range parsing/validation.
`UploadPartCopy` returns `InvalidArgument` if the copy source range is not valid.
@niksis02 niksis02 force-pushed the sis/getobject-exceeding-range branch from 029b55f to 96af2b6 Compare March 7, 2025 21:42
@benmcclelland benmcclelland merged commit 293e7fa into main Mar 7, 2025
24 checks passed
@benmcclelland benmcclelland deleted the sis/getobject-exceeding-range branch March 7, 2025 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants