Skip to content

rfl::xml::Reader: fix rfl::NoExtraFields unknown-element and attribute rejection #108

Done

Description

@clockblocker

Bug

rfl::xml::Reader with rfl::NoExtraFields fails to consistently reject unknown XML child elements and unknown XML attributes across all 3 parser paths observed in cppcheck#3.

Evidence & Cross-Reference

  • Surfaced in cppcheck#3 Showcase Migration (all 3 NoExtraFields failure modes).
  • Cross-check findings with Audit rfl::xml 7-gap surface from cppcheck#3 before/during implementation to ensure alignment with the broader XML surface.

Acceptance Criteria

  • Consistently reject unknown XML child elements and unknown XML attributes across all reader paths when rfl::NoExtraFields is active.
  • Add regression tests covering unknown elements, unknown attributes, and mixed known/unknown nodes under rfl::NoExtraFields.

Activity

  1. added
    bug
    ready-for-agent
    on Nov 27, 2026
  2. clockblocker commented on Nov 27, 2026

    @clockblocker
    OwnerAuthor

    Exact file/line root causes across all 3 NoExtraFields failure paths (and collateral ViewReaderWithDefault xml_content / ExtraFields leakage) on showcase/all-lanes (3d6a95b2) are now documented in Audit rfl::xml 7-gap surface from cppcheck#3 (see Gap #1 and Clean Action Split → Ticket 1: include/rfl/xml/Reader.hpp:196-214, include/rfl/parsing/is_view_reader.hpp:19-21, include/rfl/parsing/ViewReader.hpp:146-150, include/rfl/parsing/ViewReaderWithDefault.hpp:204-211).

  3. clockblocker commented on Nov 27, 2026

    @clockblocker
    OwnerAuthor

    Resolved on showcase/all-lanes via Batch 1 merge 4861aafd (commits d4700190, d3673b24). Verified with 962/962 CTest passing under AppleClang 17 -Wall -Werror + REFLECTCPP_STRICT_WARNINGS=ON (non-SYSTEM -I for internal tests, -isystem for downstream consumers) and dual Judge approval (Gemini 4 Neon High: APPROVE WITH NITS, all addressed; Claude Opus 5.5 High re-check: APPROVE).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions