Repository navigation
fix(plist): ignore inherited XML entity lookup properties - #4530
Conversation
…lookup # Conflicts: # tests/boundary/firmware/firmwareIntegration.test.ts
…x-xml-entity-lookup
…x-xml-entity-lookup # Conflicts: # tests/boundary/filesystem/ghidraProfileArtifactOwnership.test.ts
|
Hi @N0zoM1z0, thank you again for reviewing and merging #4354! When convenient, could you also give early feedback on these two draft PRs?
Both current revisions have passed CI required, and neither has unresolved review threads at this check. Their descriptions include the executed evidence and validation limits. The human author-readiness declarations remain pending, so the PRs are still drafts. Thank you for your time! |
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. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Hi @morluto @N0zoM1z0 @baron, when you have time, could you help review these two PRs?
Both are now ready for review, and the author-readiness declarations are completed. CI required has passed for both current revisions, with no unresolved review threads at this check. Their descriptions include the executed evidence and validation limits. Marking them ready triggered fresh automated reviews, which are still running. Thank you again for your earlier reviews and for taking the time to look at these! |
[Medium impact] The PR appears safe to merge; no actionable issues were found. Summary
Reviews (2) · Last reviewed commit: "Merge commit '5b243993872c2bcc70cb00060f..." · Reviewed by Greptile |
…x-xml-entity-lookup # Conflicts: # tests/acceptance/providers/jebConfigurationIsolation.test.ts
There was a problem hiding this comment.
Source review at c900ab6188fab5d679c793f356adead52351a737: the own-property check correctly prevents inherited entity-table values from entering the existing numeric-metadata scanner. No additional correctness finding. Four dependency-free exact-source probe groups passed on pinned Node 24.18.0 (inherited/unknown names, predefined entities, numeric references and Unicode bounds). Follow-up with the coordinated byte-identical-lock dependency tree, pinned Node 24.18.0 and exact Vitest source selection: src/domain/propertyListKeys.test.ts + src/native/parsers/plist.test.ts, 49/49 passed. No build/typecheck/install was run in this review lane.
Overlap: #4047 removes both this helper and its raw-source scanner, replacing them with DOM-owned numeric facts. This is a valid standalone correction, not a cumulative requirement after that refactor; reconcile the helper test/import when sequencing the PRs rather than retaining an obsolete decoder solely for this test.
HOLD, not approval: open/non-draft and MERGEABLE/CLEAN; all 34 listed check runs are successful or legitimate skips, but the current head has no PR readiness commit status/check. The three human declarations are filled; that is separate from the missing readiness CI. Please run the repository readiness workflow before approval.
baron
left a comment
There was a problem hiding this comment.
Approved at c900ab6188fab5d679c793f356adead52351a737 after refreshing the open/non-draft head, MERGEABLE/CLEAN state, all active CI (17 successful checks and 17 legitimate skips), and the filled human-owner declarations. The absent status from the manually disabled readiness workflow is not an additional gate; that supersedes my earlier readiness-only hold.
This has independent value in the current tree: the existing numeric-metadata consumer still calls this decoder, whose predefined-entity lookup must not substitute inherited JavaScript properties. The own-entry guard is correct and preserves numeric/predefined decoding and unknown entity text. No public CLI/MCP output difference is claimed. #4047 may later remove the helper/scanner, but it is currently conflicting; its eventual cleanup does not invalidate this narrow current-tree correction. When integrating that refactor, remove the superseded helper-only test/import rather than restoring the scanner.
Reviewer validation: pinned Node 24.18.0, byte-identical-lock dependencies, isolated exact-head source tests — src/domain/propertyListKeys.test.ts and src/native/parsers/plist.test.ts, 49/49 passed — plus four dependency-free exact-source probe groups. No local build/typecheck/full suite, public CLI/MCP, real provider/client or performance verification was performed. No additional actionable source finding.
|
Hi @baron, thank you for the detailed reviews, independent plist validation, and approvals of #4530 and #4531! I refreshed your latest #4530 approval at Both current heads passed CI required. The Linux report also confirms all 6 #4531 MCP inventory cases passed, including the socket/pagination/skipped-coverage case that was unavailable on my Windows host. Thank you again for your time! |
Problem and outcome
The shared XML decoder substituted inherited object properties into unknown entities such as &constructor;. Restrict lookup to the predefined entity table's own entries. Unknown entities remain literal, while numeric and the five predefined entities retain their behavior.
This corrects the decoder contract; its current production consumer scans numeric literal metadata. No public CLI/MCP output difference is claimed. The net diff contains only propertyListKeys.ts and its tests. This branch normally synchronized with upstream 5b24399.
Validation
Current head:
c900ab6188fab5d679c793f356adead52351a737.Executed with pinned Node 24.18.0/npm 11.16.0 on Windows x64. Java stand-ins do not establish real JVM behavior; no live Apple application or performance claim.
Current-head CI run 39011594487: CI required passed; all 34 listed checks completed successfully or were legitimately skipped. Linux source tests passed and JEB CLI/stdio-MCP acceptance passed 2/2. Greptile reported 5/5, and no unresolved review threads remain.
Human review approved this exact head after independent 49/49 decoder/native-plist tests and four source probe groups. The reviewer explicitly superseded the earlier readiness-only hold: the manually disabled workflow has no status, but is not an additional gate. The three human declarations remain filled.
Sequencing: #4047 remains open and replaces this helper/raw-source scanner with DOM-owned numeric facts. This standalone decoder correction is not cumulative after that refactor; reconcile the helper-specific test/import at integration rather than retaining an obsolete decoder.
Author readiness
Human owner: @ShuaixinHuang