treeverse / lakeFS

lakeFS - Data version control for your data lake | Git for data
https://docs.lakefs.io
Apache License 2.0
4.46k stars 359 forks source link

[Bug]: local storage - adapter errors in GetRange() when index range is [:0] #8304

Open logan-hcg opened 4 weeks ago

logan-hcg commented 4 weeks ago

What happened?

It appears the same behavior as https://github.com/treeverse/lakeFS/issues/6115 is triggered when the request includes Range: bytes=-0, which appears to be a valid construction per https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Range

The server currently returns a 500 error with error:

<?xml version="1.0" encoding="UTF-8"?>\n<Error><Code>InternalError</Code><Message>We encountered an internal error, please try again.</Message><Key>object-key</Key><BucketName>test-v1</BucketName><Resource>branch@repo</Resource>
<Region>us-east-1</Region><RequestId>d571e32e-5584-4c69-a911-da5a63a597dd</RequestId><HostId>3C36C65039427BAF</HostId></Error>

Expected behavior

No response

lakeFS version

1.39.2

How lakeFS is installed

locally

Affected clients

boto3

Relevant log output

host="localhost:8000" matched_host=false method=GET operation_id=get_object path="object-key" ref=branch repository=repo source_ip="::1:52204" status_code=500 took=3874904 took_str=3.874904ms user=test@example.com


### Contact details

_No response_