googleapis / googleapis/storage-testbench

gRPC Read requests are always returning the requested object's entire data

Open
#393 0 comments 0 reactions 0 assignees View on GitHub
priority: p2 type: bug
Dominant language
Python
Stars
24
Forks
38
Avg merge
1d 15h
Merged PRs (30d)
1

Description

There are two different scenarios where I have encountered this.

For context, projects/_/buckets/testbucket/testobject holds 1MiB of random chars as data.

Ex 1:
Request sent:
bucket: "projects/_/buckets/testbucket"
object: "testobject"
generation: 1660167007378
read_offset: 1048575
read_limit: 1048576

returned status = "status:OK"

Expected behavior: Read 1 byte then return an out_of_range error.
Actual behavior: Entire 1MiB object is read and return an OK status.

Ex 2:
Request sent:
bucket: "projects/_/buckets/testbucket"
object: "testobject"
generation: 1660170260851
read_limit: 2048

returned status = "status:OK"

Expected behavior: Read the first 2KiB of the object and return an OK status.
Actual behavior: Entire 1MiB object is read and return an OK status.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.