Repository navigation
interchange: use shared XML and JSON nesting preflight - #3783
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
FredApps
left a comment
There was a problem hiding this comment.
Scoped source review of b6d2598: compared the removed scanners with craft_timeline::preflight at the exact pinned a2560df0 revision. The lexical algorithms are preserved, including quoted XML attributes, comment/CDATA/declaration skipping, escaped JSON strings and saturating closing-depth behavior. The shared module is available without default features. Effect retains MAX_DEPTH=256, format selection and explicit XML entity refusal before calling Film's parser; existing hostile-input tests are unchanged. No blocking defect found in this narrow extraction, which is not full XML/JSON validation.
Hosted Ubuntu CI43907724588 passes both deeply_nested_documents_error_instead_of_overflowing_the_stack and xml_timelines_declaring_entities_are_refused; 6,453 tests passed,45 skipped. Nix and the four-shard Sonar workflow also passed. No local build/tests run for this review.
Merge hold remains: #3773 and storytold/craft-libs#1910 are both still open, this PR targets the #3773 branch, and craft-timeline remains pinned to a review revision rather than a merged prerequisite. Land the prerequisites, repin to the actual shared merge and retarget/integrate main, then renew exact-head validation and review. This comment does not qualify the broader Film dependency refresh or authorize bypassing its blockers.
|



Scope
Part of storytold/craft-libs#782. Replace local XML/JSON lexical depth scanners with
craft_timeline::preflight. The shared implementation is an attributed extraction of the same source, not a different validating parser.Dependencies / merge hold
Stacked on #3773, which must land first. Shared storytold/craft-libs#1910 is a prerequisite; this currently pins its review head, not merged main. Repin to its merge, retarget to main and rerun fresh hosted gates/review before landing. Keep #3773's unresolved issues visible, including marker-color parity; do not merge around them.
Safety and parity
Retains MAX_DEPTH=256, entity refusal, format selection and all existing malicious entity/deep nesting tests unchanged. No app-specific policy is removed. Removes 72 app production lines; reusable lexical scanning remains shared. This is not full XML/JSON validation or whole-app completion.
Validation
Generated lockfile, locked metadata and diff check passed. No local build/tests. Shared extraction independently reviewed; consumer delta review and GitHub CI pending.
Summary by CodeRabbit