-
Notifications
You must be signed in to change notification settings - Fork 38.5k
Add support for http byte-range requests for non-static resources [SPR-13834] #18407
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
Comments
Rossen Stoyanchev commented The HTTP byte range support from #15431 has two parts. One is in HttpHeaders for parsing and representing byte range information and that can be used from any code. The second is an actual use of this in ResourceHttpRequestHandler where you could say it is a built-in feature. You can already use the foundational support for byte ranges to simplify your code significantly. I'm wondering what more beyond that do you have in mind? |
Burkhard Graves commented Ok, let's say I have a simple Spring-Boot app. If there is a big mp4 video But if such a big mp4 video is uploaded and stored in a local file storage beforehand (not under resources), it would be nice if one could simply write
But in this case (people also asking on stackoverflow e.g. http://stackoverflow.com/questions/28427339/how-to-implement-http-byte-range-requests-in-spring-mvc) |
Phil Webb commented I think this change has broken Spring Boot or Mock MVC. I'm seeing an NPE in this build https://build.spring.io/download/BOOT-PUB-JOB1/build_logs/BOOT-PUB-JOB1-3898.log |
Phil Webb commented Never mind, we subclass |
Phil Webb commented BTW you're missing a
|
Brian Clozel commented Thanks Phil Webb! |
Davin Kevin commented +1 Thanks a lot, thanks to it, I will remove a lot of code from my app ! |
Brian Clozel commented This feature is being reconsidered in #18795. |
Brian Clozel commented While refactoring this feature in #18795, we've found many issues with the design of this implementation. That's why this feature has been removed as of 4.3.RC2 as part of #18795. Sorry about this! |
Burkhard Graves commented Would have been really great to have this in the upcoming 4.3 release! A higher priority would be nice at least... Anyway, thanks for your efforts! |
Rossen Stoyanchev commented Linking in #19228 since this request should be considered on the reactive side as well. |
Glaucio Melo commented I've saw a new spring release here, few hours ago: https://github.com/spring-projects/spring-framework/releases/tag/v5.0.0.M3 Does this release is considering this ticket? Thanks, GMelo |
Brian Clozel commented No, this is targeted for 5.0.0.M4. |
Burkhard Graves commented I guess this is something we won't see in 5.0 GA, right? A solution/workaround utilizing the stuff introduced in #15431 can be found here ("A simple solution for handling non-static resources..."). |
Burkhard Graves opened SPR-13834 and commented
#15431 adds support for http byte-range requests for serving static resources with a ResourceHttpRequestHandler.
It would be nice to have the same for non-static resources (e.g. streaming a video which was uploaded beforehand).
https://gist.github.com/davinkevin/b97e39d7ce89198774b4 shows a solution but it would be nice to have this in spring itself.
Affects: 4.2.4
Reference URL: #754
Issue Links:
Referenced from: commits 582014e, c7bd3b8, 5ac31fb
11 votes, 13 watchers
The text was updated successfully, but these errors were encountered: