googleapis/storage-testbench

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

isaiahgama opened this issue · 0 comments

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.