Repository navigation
Handle unavailable pages in Object Storage listings - #949
Open
pcbeingused33 wants to merge 1 commit into
Open
pcbeingused33 wants to merge 1 commit into
pcbeingused33 wants to merge 1 commit into
Conversation
pcbeingused33
requested review from
josephcardillo-akamai and
psnoch-akamai
and removed request for
a team
December 3, 2026 22:49
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Description
When
obj lsorobj larequests the first page past the end of the results, the shared pagination helper exhausts the iterator while fetching the requested page and letsStopIterationescape. Handle exhaustion during that fetch the same way as during page skipping. With this change, both commands report “No result to show in this page.” and exit withREQUEST_FAILED.✔️ How to Test
Run
LINODE_CLI_TEST_MODE=1 XDG_CONFIG_HOME=$(mktemp -d) python -m pytest -q tests/unit/test_plugin_obj.py. The regression test checks that a one-page iterator returns page 1 and reports the expected error for page 2.This change was prepared with AI assistance.