googleapis / googleapis/storage-testbench

List objects does not honor pageSize BlobListOption

Open
#732 1 comment 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

#### Environment details

- Programming language: Java
- OS: Fedora
- Language runtime version: 11
- Package version: 0.54.0

#### Steps to reproduce

Using Google Cloud Storage SDK, I have the requirement to return a list of up to a configurable number of object metadata and return the results and a continuation token if there are more results.

```
Page list = storage.list(bucketName, Storage.BlobListOption.prefix(prefix), Storage.BlobListOption.pageSize(maxSize), Storage.BlobListOption.pageToken(continuationToken), Storage.BlobListOption.startOffset(startAfter));
```

Expectation is `list.getValues()` will return a collection of blobs of up to maxSize size.
Storage Testbench: maxSize is ignored and the full list of objects is returned
Google Cloud Storage: maxSize is honored and a continuation token is returned and I can make the request again with the token to get the remaining blobs.

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.