Description
--page-size 0 is documented as “fetch all” for some list commands, but the behavior is inconsistent. Some commands fetch all pages correctly, while others only make a single API request with page_size=0, so results may be incomplete when more than one page exists.
Affected commands:
harbor replication policies list --page-size 0
harbor replication executions list <policy-id> --page-size 0
harbor quota list --page-size 0
Steps to Reproduce
- Run command:
harbor replication policies list --page-size 0
- With a Harbor instance that has more than one page of replication policies
- Observe that not all pages are fetched
Expected Behavior
When --page-size 0 is used, the CLI should fetch all pages by repeatedly requesting pages until the final page is reached, consistent with commands like harbor project list and harbor user list.
Actual Behavior
Some commands pass page_size=0 directly to the API and only perform one request, so the displayed output can miss additional pages.
Environment
- OS: macOS
- Tool version: Harbor CLI main branch
- Other relevant details: Reproduces when the target Harbor resource has more than one page of results
Additional Context
Logs, screenshots, or other useful information.
Description
--page-size 0is documented as “fetch all” for some list commands, but the behavior is inconsistent. Some commands fetch all pages correctly, while others only make a single API request withpage_size=0, so results may be incomplete when more than one page exists.Affected commands:
harbor replication policies list --page-size 0harbor replication executions list <policy-id> --page-size 0harbor quota list --page-size 0Steps to Reproduce
harbor replication policies list --page-size 0Expected Behavior
When --page-size 0 is used, the CLI should fetch all pages by repeatedly requesting pages until the final page is reached, consistent with commands like harbor project list and harbor user list.
Actual Behavior
Some commands pass page_size=0 directly to the API and only perform one request, so the displayed output can miss additional pages.
Environment
Additional Context
Logs, screenshots, or other useful information.