Skip to content

fix config properties refresh for each property #11798

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 9, 2025

Conversation

graemerocher
Copy link
Contributor

The refresh endpoint doesn't work for @EachProperty beans. This means that datasource properties are not refreshed from the /refresh endpoint and other periodic refresh mechanisms. The reason this is broken is because:

  • The @ConfigurationProperties stereotype is used instead of @ConfigurationReader
  • The each property prefix is not handled
  • The inject method of the bean context doesn't set the path.

@graemerocher graemerocher added the type: bug Something isn't working label May 9, 2025
@graemerocher graemerocher requested a review from dstepanov May 9, 2025 10:40
Copy link

sonarqubecloud bot commented May 9, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
1 New Bugs (required ≤ 0)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@graemerocher graemerocher merged commit faae3b5 into 4.7.x May 9, 2025
21 of 22 checks passed
@graemerocher graemerocher deleted the fix-each-property-refresh branch May 9, 2025 15:53
sdelamo pushed a commit that referenced this pull request Jun 11, 2025
The refresh endpoint doesn't work for `@EachProperty` beans. This means that datasource properties are not refreshed from the `/refresh` endpoint and other periodic refresh mechanisms. The reason this is broken is because:

* The `@ConfigurationProperties` stereotype is used instead of `@ConfigurationReader`
* The each property prefix is not handled
* The `inject` method of the bean context doesn't set the path.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants