Repository navigation
fix(id): reject Cf in directory names and descriptions - #3945
Conversation
|
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 1 minute. 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 SummaryThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: eb0ca4383d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…haracters Codex P1 on PR #3945: Directory::replay passes every historical entry through apply -> checked -> change, which invokes the same cleaners the #1778 fix just tightened. A journal written before the fix can legitimately contain a category-Cf character in an account/group name or group description, and replaying it would refuse, so the world could never reopen. Split the cleaners into strict/mode variants and thread a refuse_format flag from apply: new writes (apply, checked, change, store_artifact effects) refuse Cf exactly as before, while replay (apply_replay) keeps every other check - Cc refusal, length, trim - but tolerates format characters in historical entries. Regression test: replay_tolerates_pre_fix_format_characters_in_group_fields crafts a journal whose GroupUpdated entry carries U+202E/U+200B, asserts replay reopens with the historical values intact, and asserts create_group still refuses a Cf name. Tests: cargo test -p id --lib --no-default-features --features world directory::tests 44/44 pass; petname::tests 3/3 pass; rustfmt clean.
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Fixes #1778
Summary
Tests
cargo test -p id --lib --no-default-features --features world directory::tests— 43 passed.cargo test -p id --lib --no-default-features --features world invite::tests::format_characters_are_refused— passed.rustfmt --check --edition 2024 src/directory.rsandgit diff --check— passed.The standalone
id-corepetname test target currently fails to compile on cleanmaindue to existing test wiring (missing iroh test-utils/vt100 and a relay test API mismatch); noid-corefiles are changed here. CI will provide the PR gate.Need help on this PR? Tag
@codesmith-botwith what you need.