Skip to content

Invalid ranges incorrectly returns InternalError #762

@nikeee

Description

@nikeee

Describe the bug
When specifying a range request with a starting value larger than the object size, it returns:

<Error><Code>InternalError</Code><Message>Io error: The requested range is not satisfiable</Message></Error>

With status 500.

To Reproduce
Steps to reproduce the behavior:

  1. Upload an object with 30 bytes in size
  2. Do a range request with start=1000
  3. Get the error

Test run on my s3 client:
https://github.com/nikeee/lean-s3/actions/runs/18946892646/job/54100626109?pr=160#step:6:1276
(same test works on ceph, garage, minio, localstack, hetzner, aws s3 and cf r2)

Expected behavior
All other s3 implementations return InvalidRange. It should also be status code 416.

Desktop (please complete the following information):

  • OS: Linux, Docker

Metadata

Metadata

Assignees

Labels

S-confirmingStatus: Awaiting confirmation for a resolved issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions