Skip to content

fix(xml): decode namespace URI entities before resolution - #141

Closed
nth-bailey wants to merge 2 commits into
perf/xml-runtime-investigationfrom
fix/xml-namespace-entities
Closed

nth-bailey wants to merge 2 commits into
perf/xml-runtime-investigationfrom
fix/xml-namespace-entities

Conversation

@nth-bailey

Copy link
Copy Markdown
Collaborator

Namespace declarations were stored as escaped XML source text. A valid URI containing an ampersand therefore failed strict-root matching and xsi:type dispatch, including inherited bindings in streamed records.

Decode predefined and numeric references once before storing namespace URIs, and propagate decoding failures through document, nested and stream paths. Preserve already-decoded inherited bindings. New regressions cover default/prefixed roots, round trips, local/inherited xsi:type declarations, streamed Start/Empty records, double-decoding prevention and undefined entity errors.

The new tests reproduce all three primary failures on the baseline and pass with the fix. This change addresses namespace URI decoding; it does not claim full namespace conformance.

Stacked on #137; keep this draft until the runtime investigation is reviewed.

Validation: full quality gate passes with 325 Rust tests, strict fmt/Clippy, Ruff, and 112 Python tests at 100% statement/branch coverage. Worktree-owned build artifacts; one Cargo worker under the systemd memory cap.

Report and raw evidence.

@nth-bailey nth-bailey closed this Oct 4, 2026
@nth-bailey
nth-bailey deleted the fix/xml-namespace-entities branch October 4, 2026 04:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant