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

Stages: if no preferred locales are specified, use the default locales #100

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

sp193
Copy link
Contributor

@sp193 sp193 commented Oct 15, 2023

If no preferred locales are specified (e.g. not as a query parameter & not in the Accept-Language header), use the default locales.
This means the app's (e.g. OpenAM's), followed by the JVM's default.

This will allow OpenAM to comply with the documented behaviour for OpenAM 13.

Specifically, this allows the RESTful user self-service APIs to work without crashing due to "java.lang.IllegalArgumentException: Cannot find suitable translation from given choices" if no locale is specified.

… (e.g. OpenAM's), followed by the JVM's default.
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.

2 participants