Skip to content

[BUG] container registry lisrepository names only returns 109 max #39815

@rszabo50

Description

@rszabo50

*Describe the bug

without considering pagination i get 100 results back using registryClient.listRepositoryNames()

the PagedItrable examples using:

public List getRepositoryNames() {
List allRepositoryNames = new ArrayList<>();
PagedIterable repositories = registryClient.listRepositoryNames();
repositories.streamByPage().forEach(page -> {
allRepositoryNames.addAll(page.getValue());
});
return allRepositoryNames;
}

I still only get 100 records back.

Am I missing something ?

Exception or Stack Trace
No exception

To Reproduce
Create more than 100 repositories in your azure cr, then try the code

Code Snippet
See above

Expected behavior
I should be able to read all results with pagination.

**Screenshots”

Setup (please complete the following information):

  • OS: osx, Linux
  • IDE: IntelliJ, vscode
  • Library/Libraries: [e.g. com.azure:azure-core:1.16.0 (groupId:artifactId:version)]
  • Java version: 17
  • App Server/Environment: N/A
  • Frameworks: Spring Boot

Metadata

Metadata

Assignees

Labels

ClientThis issue points to a problem in the data-plane of the library.Container RegistrybugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK team

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions