You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
before start: some web crawlers try invalid Accept header to avoid blocking.
I've build my webapp using spring-boot, and it worked well.
some hours after release, server reported servlet container (I use Jetty) consume all system resources.
and log pointed there is infinite loop on error handling filter.
To Reproduce
build webapp using spring-boot (autoconfigured BasicErrorController) or configure custom error controller (may with @ResponseBody for return JSON to reproduce.).
run servlet container
open terminal and type curl -H "Accept: application/octet-stream" http://localhost:8080/<context-path>/error
Possible Solution
when previous status code detected and it's 406, wrap ServletRequest and avoid return Accept header.
Affects: 4.0.6
The text was updated successfully, but these errors were encountered:
If this is a Spring Boot related issue, then you should report it on Spring Boot bugtracker, not here.
I can't reproduce the issue with Spring Framework 4.0.6 and Spring Boot 1.1.4, so if you think this is a Spring Framework related issue, could you provide a sample project that allows to reproduce the error ? You can fork https://github.com/spring-projects/spring-framework-issues and add a new #16682.
If you think it is related to Spring Boot, let me know I will close this one.
Sin-young "Divinespear" Kang opened SPR-12066 and commented
(excuse my broken english :P)
before start: some web crawlers try invalid
Accept
header to avoid blocking.I've build my webapp using spring-boot, and it worked well.
some hours after release, server reported servlet container (I use Jetty) consume all system resources.
and log pointed there is infinite loop on error handling filter.
To Reproduce
BasicErrorController
) or configure custom error controller (may with@ResponseBody
for return JSON to reproduce.).curl -H "Accept: application/octet-stream" http://localhost:8080/<context-path>/error
Possible Solution
when previous status code detected and it's 406, wrap
ServletRequest
and avoid returnAccept
header.Affects: 4.0.6
The text was updated successfully, but these errors were encountered: