Federico Mariani created CAMEL-23984:
----------------------------------------

             Summary: camel-yaml-dsl - unsupported top-level mapping YAML is 
silently ignored: application starts with zero routes and no diagnostic
                 Key: CAMEL-23984
                 URL: https://issues.apache.org/jira/browse/CAMEL-23984
             Project: Camel
          Issue Type: Bug
          Components: camel-yaml-dsl
    Affects Versions: 4.21.0
            Reporter: Federico Mariani


{{YamlRoutesBuilderLoader.preConfigureNode}} 
({{YamlRoutesBuilderLoader.java:343-356}}) only special-cases mapping roots 
that match {{kind: Pipe}}. Any other top-level *mapping* document falls through 
as the raw node, reaches the non-sequence branch of {{configure()}}, matches no 
{{instanceof}} in {{doConfigure}}, and the {{false}} return value is discarded 
({{:162-164}}). The same silent drop exists in {{configuration()}} at line 327.

Failure scenarios:
* A user writes a route without the leading list dash ({{route:}} / {{from:}} 
as a top-level mapping instead of a sequence item) — the application starts 
cleanly with *zero routes* and no error or warning.
* A legacy {{kind: KameletBinding}} / {{kind: Integration}} file (support 
removed in CAMEL-21695) — also silently ignored instead of a clear "no longer 
supported" error.

Expected: the non-sequence branch should either attempt 
{{ctx.mandatoryResolve}} (as the sequence branch does) or fail with an 
"unsupported root node" error including the resource location.

_Filed by Claude Code on behalf of Croway._



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to