Preserve ${...} placeholders when removing/modifying networkConnectors in RuntimeConfigurationPlugin by jbonofre · Pull Request #2123 · apache/activemq · GitHub
Skip to content

Preserve ${...} placeholders when removing/modifying networkConnectors in RuntimeConfigurationPlugin#2123

Merged
jbonofre merged 1 commit into
apache:mainfrom
jbonofre:fix/runtime-config-preserve-placeholders
Jun 25, 2026
Merged

Preserve ${...} placeholders when removing/modifying networkConnectors in RuntimeConfigurationPlugin#2123
jbonofre merged 1 commit into
apache:mainfrom
jbonofre:fix/runtime-config-preserve-placeholders

Conversation

@jbonofre

@jbonofre jbonofre commented Jun 16, 2026

Copy link
Copy Markdown
Member

Fix NetworkConnectorProcessor.configMatch so it resolves ${...} placeholders on the DTO side before comparing against the live NetworkConnector (whose attributes are already resolved by Spring). Without this, a networkConnector declared with placeholders could never be matched for removal or modification by the RuntimeConfigurationPlugin.

Adds a test covering uri, userName, and password placeholders across removal.

NetworkConnectorProcessor.configMatch compared raw DTO values (still
holding ${...} placeholders) against the live NetworkConnector whose
attributes had already been resolved by Spring. A connector declared
with placeholders could therefore never be matched for removal or
modification by the RuntimeConfigurationPlugin. Filter the DTO props
through placeHolderUtil before comparing.
@jbonofre jbonofre requested a review from cshannon June 16, 2026 19:13
@cshannon

Copy link
Copy Markdown
Contributor

@jbonofre jbonofre merged commit 9673781 into apache:main Jun 25, 2026
28 of 30 checks passed
@jbonofre jbonofre deleted the fix/runtime-config-preserve-placeholders branch June 25, 2026 05:07
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.

2 participants