Skip to content

fix: empty endpoint path patterns crash on startup (SRCFG00040) - #15

Merged
sap1ens merged 1 commit into
sap1ens:mainfrom
billykern:fix-empty-endpoint-path-patterns
Aug 3, 2026
Merged

fix: empty endpoint path patterns crash on startup (SRCFG00040)#15
sap1ens merged 1 commit into
sap1ens:mainfrom
billykern:fix-empty-endpoint-path-patterns

Conversation

@billykern

Copy link
Copy Markdown
Contributor

Fixes #14. The built-in String converter treats an empty config value as null, which fails config mapping validation at startup — so the README's "set to an empty string to disable" crash-loops the app, and since the keys are defined in application.properties they cannot be removed via env vars either.

This keeps empty values alive through mapping with a pass-through converter and filters them out of endpointPathPatterns(), so empty-means-disabled works as documented (the frontend already hides absent patterns). Includes a regression test that reproduces the startup crash on the previous code.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

@sap1ens sap1ens left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thanks for the fix!

@sap1ens
sap1ens merged commit 29559cb into sap1ens:main Aug 3, 2026
1 check passed
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.

Empty string no longer disables endpoint path patterns — startup crash (SRCFG00040)

2 participants