You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2018/09/07 01:45:37 UTC
[Bug 62687] New: WarURLConnection always returns -1 from
getContentLength() and getContentLengthLong() which causes a 416 when request
includes a Range header
https://bz.apache.org/bugzilla/show_bug.cgi?id=62687
Bug ID: 62687
Summary: WarURLConnection always returns -1 from
getContentLength() and getContentLengthLong() which
causes a 416 when request includes a Range header
Product: Tomcat 8
Version: 8.5.x-trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
Assignee: dev@tomcat.apache.org
Reporter: 3wvzs2636b@liamekaens.com
Target Milestone: ----
WarURLConnection doesn't override the default implementations of
getContentLength() and getContentLengthLong(), so it always returns -1.
In the context of a Spring Boot application, this has the effect of causing
requests that have a Range header to return a 416 Range Not Satisfiable.
I originally reported this bug against Spring Boot
(https://github.com/spring-projects/spring-boot/issues/14306) but the
developers there suggested I report it here.
Specifically, Andy Wilkinson suggested that WarUrlConnection should override
getContentLength() and getContentLengthLong() to delegate them to
wrappedJarUrlConnection as is done for getLastModified(). (See bug 61125.)
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 62687] WarURLConnection always returns -1 from
getContentLength() and getContentLengthLong() which causes a 416 when request
includes a Range header
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62687
--- Comment #2 from Douglas Paul <3w...@liamekaens.com> ---
Excellent, thanks!
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 62687] WarURLConnection always returns -1 from
getContentLength() and getContentLengthLong() which causes a 416 when request
includes a Range header
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62687
Remy Maucherat <re...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #1 from Remy Maucherat <re...@apache.org> ---
Ok, this is reasonable. The fix will be in 9.0.13 and 8.5.35.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 62687] WarURLConnection always returns -1 from
getContentLength() and getContentLengthLong() which causes a 416 when request
includes a Range header
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62687
Phillip Webb <pw...@pivotal.io> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pwebb@pivotal.io
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org