GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — List operations do not return nextPageToken which prevents proper paging · Issue #665 · googleapis/google-cloud-java

List operations do not return nextPageToken which prevents proper paging #665

New issue
Copy link
New issue
Copy link
Closed
#668
Closed
List operations do not return nextPageToken which prevents proper paging#665
#668
Copy link
Assignees
mderka
Labels
api: cloudresourcemanagerIssues related to the Resource Manager API.api: storageIssues related to the Cloud Storage API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Description

@mderka
mderka
opened on Feb 25, 2016
Issue body actions

When implementing integration tests for DNS, I noticed that if one restricts the fields to be retrieved for a list operation, iterateAll() does not work properly. The following test would always fail:

dnsRecordIterator = DNS.listDnsRecords(zone.name(),
    Dns.DnsRecordListOption.fields(Dns.DnsRecordField.TYPE),
    Dns.DnsRecordListOption.pageSize(1)).iterateAll(); // to force the iterator fetch next page
  int counter = 0;
  while (dnsRecordIterator.hasNext()) {
    counter++;
  }
assertEquals(2, counter);

This is because the field selector silently prevents the service from returning the nextPageToken:

builder.append("rrsets(").append(DnsRecordField.selector(fields)).append(')');

instead of

builder.append("nextPageToken,rrsets(").append(DnsRecordField.selector(fields)).append(')');

I recall seeing the same handling in resource manage. Having discussed this with @ajkannan, this is likely a bug. The same bug may be present in other parts of the library when a combination of listing and field restriction is possible.

Activity

  1. ajkannan commented on Feb 25, 2016

    @ajkannan
    ajkannan
    on Feb 25, 2016
    More actions

    @mderka do you want to assign yourself this issue and fix it in BigQuery, Storage, and ResourceManager?

  2. ajkannan
    added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    api: bigqueryIssues related to the BigQuery API.
    api: storageIssues related to the Cloud Storage API.
    api: cloudresourcemanagerIssues related to the Resource Manager API.
    on Feb 25, 2016
  3. aozarov commented on Feb 25, 2016

    @aozarov
    aozarov
    on Feb 25, 2016
    Contributor
    More actions

    Nice catch!!

  4. aozarov
    added this to the This milestone has been deleted milestone on Feb 25, 2016
  5. mderka
    self-assigned this
    on Feb 25, 2016
  6. mderka commented on Feb 25, 2016

    @mderka
    mderka
    on Feb 25, 2016
    Author
    More actions

    I will fix it tomorrow.

  7. ajkannan
    removed
    api: bigqueryIssues related to the BigQuery API.
    on Feb 25, 2016
  8. aozarov
    closed this as completedin #668on Feb 25, 2016
  9. ajkannan
    added a commit that references this issue on Mar 4, 2016

    Added RPC layer of tests for local helpers. Closes googleapis#665.

    This issue will close once commit 04f354a is merged into the 'master' branch.
    04f354a
  10. github-actions
    added 2 commits that reference this issue on Jun 29, 2022

    docs: fix docstring formatting (googleapis#665)

    cb79f5f

    chore: release 1.2.0 (googleapis#657)

    03ba670
  11. github-actions
    added a commit that references this issue on Jul 14, 2022

    chore(deps): update dependency com.google.cloud:google-cloud-redis to…

    a9ea8ff
  12. github-actions
    added a commit that references this issue on Aug 18, 2022

    chore(deps): update dependency com.google.cloud:google-cloud-memcache…

    033d1b4
  13. github-actions
    added 2 commits that reference this issue on Sep 15, 2022

    chore: add native image checks as required (#665)

    e82224f

    chore: Generated snippets should not be owned by samples reviewers (#…

    2daea42
  14. suztomo
    added a commit that references this issue on Feb 1, 2023

    chore(main): release 2.9.1-SNAPSHOT (#665)

    589888b
  15. meltsufin
    added a commit that references this issue on Dec 22, 2025

    doc: add information about writing log entries modes

    This issue will close once commit e749acc is merged into the 'main' branch.
    e749acc
  16. chingor13
    added a commit that references this issue on Jan 6, 2026

    chore(main): release 0.122.11 (#665)

    5e0368f
  17. chingor13
    added a commit that references this issue on Feb 24, 2026

    build: switch all clients to use the google endpoint on sonatype (#665)

    9633e45
  18. suztomo
    added a commit that references this issue on Mar 11, 2026

    doc: add information about writing log entries modes

    This issue will close once commit 84e4387 is merged into the 'main' branch.
    84e4387
  19. chingor13
    added a commit that references this issue on Mar 12, 2026

    build: switch all clients to use the google endpoint on sonatype (#665)

    9da437b
  20. suztomo
    added a commit that references this issue on Mar 23, 2026

    chore: release 2.5.2 (googleapis#665)

    6d189ee
  21. suztomo
    added a commit that references this issue on Mar 30, 2026

    ci: removing linkage-monitor from the required checks (#665)

    1d9e4b6
  22. lqiu96
    added a commit that references this issue on Apr 1, 2026

    ci: removing linkage-monitor from the required checks (#665)

    4d7d846
  23. benjaminp
    added a commit that references this issue on Jul 13, 2026

    chore: regenerate README (googleapis#665)

    a732ea9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @mderka
    mderka

Labels

api: cloudresourcemanagerIssues related to the Resource Manager API.api: storageIssues related to the Cloud Storage API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.