https://bz.apache.org/bugzilla/show_bug.cgi?id=69602
Bug ID: 69602
Summary: IF-Range Check for Strong-ETags breaks download of
large videos
Product: Tomcat 9
Version: 9.0.99
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: -----
Hi guys,
we recognized a severe problem when using tomcat to deliver web based trainings
housing large videos.
How to reproduce:
Microsoft Edge Browser:
* request a large video
* getting a weak ETag, which is default of the DefaultServelet
* cancelling the streaming
* jump to a further location in the video
* Microsoft Edge request the same video but this time with a range request
** if-range: W/"696184473-1709306080000"
** range: bytes=89030656-696184472
* Tomcat 9.0.99 produced a status 400 since the new if-range validation rejects
weak ETags
** cf.
https://github.com/apache/tomcat/commit/99f25115e34ffaa1c7f7bf7003077b12931c5d72
So by default Tomcat 9 rejects ETags that it delivered itself.
Current workaround: adapt Default-Servlet-Config
<init-param>
<param-name>useStrongETags</param-name>
<param-value>true</param-value>
</init-param>
I guess this is a bad constellation:
* either activate strong ETags by default
** probable performance impact
* accept weak ETags in if-ranges
** concurs with if-range syntax
*** https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Range
Thank you for helping with this issue.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]