mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-26 06:05:54 +03:00
[GH-ISSUE #1912] No pagination / listing objects with maxResults does not return nextPageToken #228
Labels
No labels
bug
compatibility-issue
docker
documentation
enhancement
help wanted
needs information
pull-request
question
stale
unfortunate
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/fake-gcs-server#228
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jonathanbrem-dt on GitHub (Feb 24, 2025).
Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/1912
Setup:
then in "dir":
docker run -d --name fake-gcs-server -p 4443:4443 -v ${PWD}/data:/data fsouza/fake-gcs-serverand to list the objects, using maxResults:
curl --insecure https://0.0.0.0:4443/storage/v1/b/sample-bucket/o?maxResults=5The response does not contain a
nextPageToken, which is mentioned in https://cloud.google.com/storage/docs/json_api/v1/objects/list:pageTokenof a subsequent request in order to return the next page of results. Note that the next page may be empty. If this is the last page of results, then no continuation token is returned. The presence of this parameter in the response should always be checked to ensure a complete listing of all the results.Are you planning to add support for this?
Love the project, by the way, very helpful for testing GCS up front; which is why this became an issue for us, usually the behavior is the same, so we assumed this would work and we are doing something wrong on the client side.