Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-16500

Invalid/missing locale strings in header prevents resolving the locale

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 5.0.3
    • Fix Version/s: 5.0.4
    • Component/s: Web
    • Labels:
    • Last commented by a User:
      true

      Description

      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...

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              juergen.hoeller Juergen Hoeller
              Reporter:
              Clockwork-Muse Stephen Imhoff
              Last updater:
              Spring Issues Spring Issues
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 30 weeks, 1 day ago