Skip to content

[5.19.x] Preserve ${...} placeholders when removing/modifying networkConnectors in RuntimeConfigurationPlugin (#2123)#2135

Open
jbonofre wants to merge 1 commit into
apache:activemq-5.19.xfrom
jbonofre:backport-2123-5.19.x
Open

[5.19.x] Preserve ${...} placeholders when removing/modifying networkConnectors in RuntimeConfigurationPlugin (#2123)#2135
jbonofre wants to merge 1 commit into
apache:activemq-5.19.xfrom
jbonofre:backport-2123-5.19.x

Conversation

@jbonofre

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.

Backport of #2123.

(cherry picked from commit b3dea6f)

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.

(cherry picked from commit b3dea6f)
@jbonofre jbonofre requested a review from cshannon June 22, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants