-
Notifications
You must be signed in to change notification settings - Fork 359
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
fix: Stop server startup when no server base url [DHIS2-17980] #18580
base: master
Are you sure you want to change the base?
Conversation
|
// --------------------------------------------------------------------- | ||
// If mandatory config is not present stop startup | ||
// --------------------------------------------------------------------- | ||
String serverBaseUrl = this.properties.getProperty(ConfigurationKey.SERVER_BASE_URL.getKey()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a thought: I assume there are other required configs. Could we declare that in ConfigurationKey
with a boolean required
and fail startup if any of these required ones without a default have no value? We might awkwardly fail at some later point when a user triggers code reading the config key for the first time 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, that's a good idea for a new feature. This PR has fallen through the cracks. Hope to get back to this smaller fix before the release.
A few conflicts need resolve @david-mackessy . |
No description provided.