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

fix: Stop server startup when no server base url [DHIS2-17980] #18580

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

david-mackessy
Copy link
Contributor

No description provided.

Copy link

// ---------------------------------------------------------------------
// If mandatory config is not present stop startup
// ---------------------------------------------------------------------
String serverBaseUrl = this.properties.getProperty(ConfigurationKey.SERVER_BASE_URL.getKey());
Copy link
Contributor

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 😅

Copy link
Contributor Author

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.

@larshelge
Copy link
Member

A few conflicts need resolve @david-mackessy .

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.

3 participants