https://issues.apache.org/bugzilla/show_bug.cgi?id=51748
Bug #: 51748
Summary: Apache 2.2.20 Range fix regression. Negative value
handling
Product: Apache httpd-2
Version: 2.3-HEAD
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: All
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
I think the version 2.2.19 behavior is correct.
See RFC 2616 section 14.35.1 "Byte Ranges".
Request and response sample in each versions.
===== version 2.2.20
GET / HTTP/1.1
Host: localhost
Range: bytes=-1
HTTP/1.1 206 Partial Content
Server: Apache/2.2.20 (Unix)
Accept-Ranges: bytes
Content-Length: 2
Content-Range: bytes 0-1/10240
Content-Type: text/html
===== version 2.2.19
GET / HTTP/1.1
Host: localhost
Range: bytes=-1
HTTP/1.1 206 Partial Content
Server: Apache/2.2.19 (Unix)
Accept-Ranges: bytes
Content-Length: 1
Content-Range: bytes 10239-10239/10240
Content-Type: text/html
=====
Fix patch for version 2.2.20 release.
=====
diff -Nur httpd-2.2.20-orig/modules/http/byterange_filter.c
httpd-2.2.20/modules/http/byterange_filter.c
--- httpd-2.2.20-orig/modules/http/byterange_filter.c 2011-08-30
00:59:39.000000000 +0900
+++ httpd-2.2.20/modules/http/byterange_filter.c 2011-09-01
15:05:44.000000000 +0900
@@ -501,7 +501,7 @@
break;
}
- if (dash == range) {
+ if (dash == cur) {
/* In the form "-5" */
if (apr_strtoff(&number, dash+1, &errp, 10) || *errp) {
break;
=====
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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]