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

Spring WebFlux fails with 500 if Accept-Language is set to an empty string [SPR-15603] #20162

Closed
spring-projects-issues opened this issue May 31, 2017 · 0 comments
Assignees
Labels
in: web type: bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented May 31, 2017

Oleg Alexeyev opened SPR-15603 and commented

31.05.2017 20:45:06,914 ERROR [org.springframework.web.server.handler.ExceptionHandlingWebHandler] - Could not complete request
java.lang.IllegalArgumentException: range=
	at java.util.Locale$LanguageRange.<init>(Locale.java:2913) ~[?:1.8.0_131]
	at sun.util.locale.LocaleMatcher.parse(LocaleMatcher.java:284) ~[?:1.8.0_131]
	at java.util.Locale$LanguageRange.parse(Locale.java:3028) ~[?:1.8.0_131]
	at org.springframework.http.HttpHeaders.getAcceptLanguage(HttpHeaders.java:471) ~[spring-web-5.0.0.M5.jar:5.0.0.M5]
	at org.springframework.http.HttpHeaders.getAcceptLanguageAsLocale(HttpHeaders.java:492) ~[spring-web-5.0.0.M5.jar:5.0.0.M5]
	at org.springframework.web.reactive.result.view.ViewResolutionResultHandler.lambda$handleResult$3(ViewResolutionResultHandler.java:214) ~[spring-webflux-5.0.0.M5.jar:5.0.0.M5]
	at reactor.core.publisher.MonoThenMap$ThenMapMain.onNext(MonoThenMap.java:120) ~[reactor-core-3.0.7.RELEASE.jar:3.0.7.RELEASE]
...

Affects: 5.0 RC1

Issue Links:

Referenced from: commits e81651b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web type: bug
Projects
None yet
Development

No branches or pull requests

2 participants