Closed
Description
Stephen Imhoff opened SPR-16500 and commented
Spring Boot 2.0.0.M7 with the web-flux starter.
Not sure if I just have a screw loose or what, but invalid locale strings ("en_US" instead of "en-US") or missing the header entirely seems to prevent any locale from being resolved in controllers and elsewhere. Supplying a LocaleContextResolver
bean doesn't seem to help. LocaleResolver
doesn't seem to be compatible due to version, it looks like.
I think I would have anticipated a null locale, instead of a 500 error, or at least a 400...
Affects: 5.0.3
Attachments:
- locale_repro.zip (55.97 kB)
Issue Links:
- AcceptHeaderLocaleResolver should match country locales against supported language locales [SPR-16457] #21002 AcceptHeaderLocaleResolver should match country locales against supported language locales
- Revise AcceptHeaderLocaleResolver default locale handling [SPR-15426] #19987 Revise AcceptHeaderLocaleResolver default locale handling
Referenced from: commits cd8a1bd