Skip to content
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

4.x: fix getOrdinal for system property and environment variable config sources #8744

Merged
merged 1 commit into from May 13, 2024

Conversation

barchetta
Copy link
Member

Description

ConfigSource.getOrdinal() was returning 100 for the system property and environment variable config sources when the special property config_ordinal was not set in the config source (instead of the correct value of 400 and 300).

This PR corrects that and adds tests.

See MP Config Spec: https://download.eclipse.org/microprofile/microprofile-config-3.0/microprofile-config-spec-3.0.html#default_configsources

Fixes #8737

Documentation

No impact

@barchetta barchetta self-assigned this May 10, 2024
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label May 10, 2024
Copy link
Member

@klustria klustria left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@barchetta barchetta merged commit 2185987 into helidon-io:main May 13, 2024
12 checks passed
barchetta added a commit that referenced this pull request May 13, 2024
…ig sources (#8753)

* Test and fix for MP config bug 8737 (getOrdinal returning wrong value) (#8744)
* Pin macos runner to 13 for packaging test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x Version 4.x config MP OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4.x: MP ConfigSource.getOrdinal() always returns 100 if default ordinals are used
3 participants