davsclaus opened a new pull request, #23713:
URL: https://github.com/apache/camel/pull/23713

   ## Summary
   
   - Fix bug where route template local beans (e.g., from kamelets) could not 
be referenced via `{{beanName}}` when a template parameter value coincidentally 
matched the bean name
   - When `doStartRouteDefinitions()` processes local beans for uniqueness, the 
first loop detects "clashes" where a parameter value matches a bean key (e.g., 
`scheme=counter` where `counter` is a bean name). It removes the bean from the 
registry and renames it, but failed to add the original bean name as a template 
parameter — leaving `{{beanName}}` references unresolvable
   - Added test `testLocalBeanWithParamValueClash` covering this scenario
   
   ## Test plan
   
   - [x] Existing 72 route template tests pass (now 73 with the new test)
   - [x] External reproducer project from JIRA issue passes
   - [x] New test verifies the exact scenario: local bean referenced via 
`{{counter}}` with a parameter `scheme=counter` that coincidentally matches
   
   _Claude Code on behalf of Claus Ibsen_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to