Title: List operations do not return nextPageToken which prevents proper paging · Issue #665 · googleapis/google-cloud-java · GitHub
Open Graph Title: List operations do not return nextPageToken which prevents proper paging · Issue #665 · googleapis/google-cloud-java
X Title: List operations do not return nextPageToken which prevents proper paging · Issue #665 · googleapis/google-cloud-java
Description: 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.listDnsRecor...
Open Graph Description: 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 fa...
X Description: 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 fa...
Opengraph URL: https://github.com/googleapis/google-cloud-java/issues/665
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"List operations do not return nextPageToken which prevents proper paging","articleBody":"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:\n\n``` java\ndnsRecordIterator = DNS.listDnsRecords(zone.name(),\n Dns.DnsRecordListOption.fields(Dns.DnsRecordField.TYPE),\n Dns.DnsRecordListOption.pageSize(1)).iterateAll(); // to force the iterator fetch next page\n int counter = 0;\n while (dnsRecordIterator.hasNext()) {\n counter++;\n }\nassertEquals(2, counter);\n```\n\nThis is because the field selector silently prevents the service from returning the `nextPageToken`:\n\n`builder.append(\"rrsets(\").append(DnsRecordField.selector(fields)).append(')');`\n\ninstead of\n\n`builder.append(\"nextPageToken,rrsets(\").append(DnsRecordField.selector(fields)).append(')');`\n\nI 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.\n","author":{"url":"https://github.com/mderka","@type":"Person","name":"mderka"},"datePublished":"2016-02-25T01:28:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/665/google-cloud-java/issues/665"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:07ffdca9-685b-ca81-8151-3973720fd95e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9560:121B7:7B75DD:A70B4E:6A4DB275 |
| html-safe-nonce | f68f2c96eb0f4b8d69b90c02c9dc3bf991fb3c52c6cff022d56dcfaf22aad192 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTYwOjEyMUI3OjdCNzVERDpBNzBCNEU6NkE0REIyNzUiLCJ2aXNpdG9yX2lkIjoiNjU1MDUwNTQ5Mzk1MjgzNjIxMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 15073bd630e82e0e8c7801ff54535a921ef613ddd3b063ed547bbf6bb63ae3b5 |
| hovercard-subject-tag | issue:136244622 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-java/665/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d6e9d1959d774a964616a46450bcca37f7b9bee3b79d65439673585f74e5fbf0/googleapis/google-cloud-java/issues/665 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d6e9d1959d774a964616a46450bcca37f7b9bee3b79d65439673585f74e5fbf0/googleapis/google-cloud-java/issues/665 |
| og:image:alt | 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 fa... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mderka |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-java git https://github.com/googleapis/google-cloud-java.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 26181278 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 26181278 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 32f7b614aca06e6bbd89842b1370df1328264f68 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width