Skip to content

Conversation

artembilan
Copy link
Member

The IntegrationFlowBeanPostProcessor.processIntegrationComponentSpec() uses a wrong generateBeanName() for component to register making the provided id as a prefix

  • Use generateBeanName(Object instance, String prefix, @Nullable String fallbackId, boolean useFlowIdAsPrefix) instead to properly "fallback" to the provided name

Cherry-pick to 6.1.x

The `IntegrationFlowBeanPostProcessor.processIntegrationComponentSpec()`
uses a wrong `generateBeanName()` for component to register making the
provided `id` as a prefix

* Use `generateBeanName(Object instance, String prefix, @nullable String fallbackId, boolean useFlowIdAsPrefix)`
instead to properly "fallback" to the provided name

**Cherry-pick to `6.1.x`**
@artembilan artembilan added this to the 6.2.0-M1 milestone Jun 7, 2023
@garyrussell garyrussell merged commit 8b8a7a4 into spring-projects:main Jun 8, 2023
garyrussell pushed a commit that referenced this pull request Jun 8, 2023
The `IntegrationFlowBeanPostProcessor.processIntegrationComponentSpec()`
uses a wrong `generateBeanName()` for component to register making the
provided `id` as a prefix

* Use `generateBeanName(Object instance, String prefix, @nullable String fallbackId, boolean useFlowIdAsPrefix)`
instead to properly "fallback" to the provided name

**Cherry-pick to `6.1.x`**
@garyrussell
Copy link
Contributor

...and cherry-picked to 6.1.x as 1a8450b

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

Successfully merging this pull request may close these issues.

2 participants