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

[Bug] - GetObject exceeding range #1004

Open
niksis02 opened this issue Dec 24, 2024 · 0 comments
Open

[Bug] - GetObject exceeding range #1004

niksis02 opened this issue Dec 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@niksis02
Copy link
Contributor

Describe the bug
When attempting to call the GetObjectaction with the lower limit of the range greater than the object size, the gateway returns a successful response.

To Reproduce

aws s3api create-bucket --bucket test

// my-file should be no more than 100 bytes long
aws s3api put-object --bucket test --key obj --body my-file

// The lower limit of the range(100) should be greater than the <my-file> size (50)
aws s3api get-object --bucket test --key obj --range bytes=100-200 obj 

Expected behavior
The action should return the InvalidRange error.

An error occurred (InvalidRange) when calling the GetObject operation: The requested range is not satisfiable
@niksis02 niksis02 added the bug Something isn't working label Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant