Skip to content

HTTP Range requests hang on large file in nested jar [SPR-13661] #18236

Closed
@spring-projects-issues

Description

@spring-projects-issues

Kevin McLaughlin opened SPR-13661 and commented

Followup from #15431.

We ended up adding a servlet filter that drops attempts to set ACCEPT_RANGE header.
Sample bootapp showing this issue is at https://github.com/krm1312/springrangeissues. Take that project and:

mvn clean package && java -jar bootapp/target/bootapp.jar

and then try a range request with curl:

curl -vvv -H "Accept-Encoding: gzip"  -H 'Range: bytes=4726785-5726784' http://localhost:8080/test/file.bin > /tmp/f

It effectively hangs.


Affects: 4.2.2

Issue Links:

Referenced from: commits b35d44b

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions