Repository navigation
test(id): pin the #6499 duplicate-key forms for parse_wants - #7627
Merged
Merged
Conversation
The fix for this defect landed as PR #7623 under the duplicate issue #7621 (a dedup race: the dedup search result naming #6499 arrived after #7621 was filed). That regression test pinned duplicate v, a duplicate cap, a duplicate args key, and the hidden over-limit subscribe array, but not three forms #6499 names: an over-MAX_NAME_BYTES cap hidden behind a duplicate, a control-character id hidden behind a duplicate, and a whole non-conforming requests array hidden behind a duplicate top-level requests key. Add all three to rejects_duplicate_keys_at_any_depth; each was verified Ok (accepted) pre-fix by #6499's probe and is refused now.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 33 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Nov 8, 2026
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.
Fixes #6499
Tests-only follow-up. The
parse_wantsduplicate-key fix itself landed in PR #7623 (merge 165b652) under issue #7621 — a duplicate of this issue, filed in a dedup race (the creator run's dedup search naming #6499 completed after #7621 was already filed and being self-solved; the record is corrected on both issues).#7621's regression test pinned duplicate
v(both orders), a duplicate requestcap, a duplicate inside request args, and the over-limitsubscribearray hidden behind a duplicate key. This PR adds the three remaining forms #6499's acceptance criteria name, each verified accepted (Ok) pre-fix by #6499's probe and refused now:MAX_NAME_BYTEScap hidden behind a benign duplicate inside one request entry,idhidden behind a benign duplicate (JSON\u0001escape, as in id(world_caps): parse_wants collapses duplicate JSON keys before its checks — a forbidden version, cap, id, or list size hidden behind a duplicate is accepted #6499's probe),requestsarray hidden behind a duplicate top-levelrequestskey.Verification:
cargo test -p id-core world_capson the branch — 30 passed, 0 failed;cargo fmtapplied (no diff beyond the added lines).Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.