Spring MVC in runtime fails when the locale is changed according with BCP 47 [SPR-16775] #21315
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: invalid
An issue that we don't feel is valid
spring-projects-issues commentedApr 26, 2018
•
edited by sbrannen
Manuel Jordan opened SPR-16775 and commented
I have the following infrastructure:
I have confirmed that in
runtime
the following works:(A):
[http://localhost:8080/thymeleaf-02/locale/changelocale?language=es_ES]
Observe that the URL uses
_
, and the app works.(B)
[http://localhost:8080/thymeleaf-02/locale/changelocale?language=es-ES]
Observe that the URL uses
-
, and the app fails with:According with my experience in: #20999
Is valid use - and not _. Currently my
@Test
methods pass with-
but fails inruntime
.Is it a bug? Or missing configuration? Because I think
runtime
andtesting
should have the same behavior.I know that
BCP 47
for this case is about theAccept-Language
header and the URL is working through a parameter. But I hope you see my point.Not sure if it is the expected behavior, but could be confuse for the developer.
Thank You.
Affects: 5.0.4
Issue Links:
The text was updated successfully, but these errors were encountered: