Repository navigation
Security alerts_v2 / incidents: $top suppresses @odata.nextLink - #10070
Open
> 𝙰𝚕𝚎𝚓𝚊𝚗𝚍𝚛𝚘 𝙰𝚗𝚍𝚛𝚎𝚞 (4leX-42) wants to merge 2 commits into
Open
> 𝙰𝚕𝚎𝚓𝚊𝚗𝚍𝚛𝚘 𝙰𝚗𝚍𝚛𝚎𝚞 (4leX-42) wants to merge 2 commits into
> 𝙰𝚕𝚎𝚓𝚊𝚗𝚍𝚛𝚘 𝙰𝚗𝚍𝚛𝚎𝚞 (4leX-42) wants to merge 2 commits into
Conversation
Author
|
@microsoft-github-policy-service agree |
Contributor
|
Learn Build status updates of commit 5966947: ✅ Validation status: passed
For more details, please refer to the build report. |
Contributor
|
Learn Build status updates of commit 2170383: ✅ Validation status: passed
For more details, please refer to the build report. |
Author
|
Hi, could someone approve the workflow runs and take a look when you have a moment? The previous ones expired waiting for approval, thanks |
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.
The list pages for
alerts_v2andincidentssay to page with@odata.nextLink, but when$topis present the response never includes it, so clients that combine$topwith nextLink paging silently stop after the first page.Observed against a production tenant (v1.0 and beta):
$top, the first page returns 2000 alerts / 50 incidents and includes@odata.nextLink.incidents?$top=5&$count=truereturns 5 items and@odata.count= 2266, with no nextLink.$top=5followed by$top=5&$skip=5returns exactly the same items as$top=10.$top=100on incidents returns 400The limit of '50' for Top query has been exceeded;$top=2500on alerts returns the same error with a limit of 2000.This adds one sentence to the pagination guidance on the four pages (v1.0 and beta) explaining the behaviour, the
$skipalternative and the maximum$topvalue.