Skip to content

List objects does not honor pageSize BlobListOption #732

@Aranduran

Description

@Aranduran

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<Blob> 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions