Skip to content

fixes #242: Use SystemProperties rather than JiveGlobals to resolve config keys in the first instance - #243

Merged
Fishbowler merged 2 commits into
igniterealtime:mainfrom
Fishbowler:fix-system-properties
Sep 8, 2026
Merged

fixes #242: Use SystemProperties rather than JiveGlobals to resolve config keys in the first instance#243
Fishbowler merged 2 commits into
igniterealtime:mainfrom
Fishbowler:fix-system-properties

Conversation

@Fishbowler

Copy link
Copy Markdown
Member

Fixes #242

Resolution runs through System Properties first (which might return a default), but if it returns nothing, try a Jive Global instead.

…s to resolve config keys in the first instance
@Fishbowler
Fishbowler force-pushed the fix-system-properties branch from cd622a5 to d4a30b7 Compare August 31, 2026 19:40
@guusdk

guusdk commented Sep 8, 2026

Copy link
Copy Markdown
Member

Does this need a test for a SystemProperty that doesn't have an explicit value, and a null default value? The expected result is not a 404.

@guusdk

guusdk commented Sep 8, 2026

Copy link
Copy Markdown
Member

I've pushed another commit that attempts to deal with null default values for SystemProperty instances.

Using the older JiveGlobals, a `null` value cannot differentiate between the property not existing, or existing but having a null value. Traditionally, this code assumed 'property does not exist'.

With SystemProperty, we can make the distinction (based on `SystemProperty#isPresent()`). Thus, the service need not default to 'NOT FOUND' when encountering a null value.
@guusdk
guusdk force-pushed the fix-system-properties branch from 71380d9 to 0d677d7 Compare September 8, 2026 18:11
@guusdk

guusdk commented Sep 8, 2026

Copy link
Copy Markdown
Member

I've amended my commit to add a hurl test for a SystemProperty with a known null default.

@Fishbowler
Fishbowler merged commit 162f58e into igniterealtime:main Sep 8, 2026
5 checks passed
@Fishbowler
Fishbowler deleted the fix-system-properties branch September 8, 2026 19:51
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.

Some system properties unable to be retrieved individually

2 participants