Repository navigation
fix(sitemap): join element text once and reject entity declarations - #2369
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2369 +/- ##
==========================================
- Coverage 94.14% 94.11% -0.04%
==========================================
Files 184 184
Lines 13647 13654 +7
==========================================
+ Hits 12848 12850 +2
- Misses 799 804 +5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
vdusek
marked this pull request as ready for review
October 30, 2026 09:51
apify-factory
left a comment
Collaborator
There was a problem hiding this comment.
Looks good, nothing blocking.
🏭 Factory review — ℹ️ not auto-approved
This change was reviewed but cannot be auto-approved: a human review is active (Mantisus: APPROVED, apify-approval-mirror[bot]: APPROVED).
| check | result |
|---|---|
| Static gates | ✅ 16/16 |
| Review findings | ✅ none |
| Reviewer escalation | ❌ The change adds input-validation hardening to the parser for untrusted sitemap XML, and now rejects whole sitemaps that declare entities. |
Juror 1 — claude-sonnet-5-5, adversarial |
⏭️ skipped — the reviewer escalated |
Why it was not auto-approved
The comments above are the review itself; this section only explains the approval decision. Push a change and request @apify-factory again to re-run it, or ask a human to review.
Reviewed 32e0ccf3d · workflow run
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 XML sitemap handler appended every
characters()callback to a string. Expat can split one text node into many callbacks, so assembling a long<loc>took quadratic time. The handler now collects the pieces in a list and joins them once inendElement.Sitemaps never declare entities, so the XML parser now rejects entity declarations. Such a sitemap is logged as a parse failure and yields no URLs.
✍️ Drafted by Claude Code