Skip to content

Reject invalid GroupAction boolean attributes - #1003

Merged
wjwwood merged 1 commit into
ros2:rollingfrom
Quchaosheng:fix-xml-boolean-attributes
Sep 18, 2026
Merged

wjwwood merged 1 commit into
ros2:rollingfrom
Quchaosheng:fix-xml-boolean-attributes

Conversation

@Quchaosheng

Copy link
Copy Markdown
Contributor

Description

The XML frontend previously treated any non-empty string as true for the GroupAction scoped and forwarding attributes. This made invalid values silently change launch behavior.

This change disables string coercion for these boolean attributes so invalid XML values raise a TypeError during parsing. Existing boolean values continue to work.

Fixes #970

Is this user-facing behavior change?

No. This makes invalid XML fail clearly instead of being accepted with surprising semantics.

Did you use Generative AI?

Codex (GPT-5) was used to assist with implementation and tests.

Additional Information

Added parameterized regression coverage for both attributes. Tested with the full launch_xml test suite (35 tests passed).

@wjwwood

wjwwood commented Sep 17, 2026 •

Copy link
Copy Markdown
Member

Pulls: #1003
Gist: https://gist.githubusercontent.com/wjwwood/b8272dd1026d004ea230195b42376249/raw/b7a1865e23b022b9579cf6fba89bc9fcfda8745e/ros2.repos
BUILD args: --packages-above-and-dependencies launch launch_xml
TEST args: --packages-above launch launch_xml
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/20478

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

@wjwwood
wjwwood merged commit 8ce45a8 into ros2:rolling Sep 18, 2026
2 checks passed
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.

XML: GroupAction boolean attributes (scoped, forwarding) accept arbitrary strings as truthy values

2 participants