You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2006/07/20 13:19:47 UTC

DO NOT REPLY [Bug 40078] New: - Content-length with Content-Range is incorrect

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40078>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40078

           Summary: Content-length with Content-Range is incorrect
           Product: Apache httpd-2
           Version: 2.2.2
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: brian@bulkowski.org


RFC 2616, page 76 "When an HTTP message includes the content of a single range
..., this content is transmitted a Content-Range header, and a Content-Length
header showing the number of bytes actually transferred"

I am seeing correct Content-Range responses, but the Content-Length is the
length of the content object, not the data that will be transferred. IE:

Content-Range: bytes 500-600/1234
Content-Length: 1234

which violates the RFC. One can infer the correct content length from the
content-range (since it is correct), but being properly RFC compliant would be
better.

Reproduction case was a simple, single request directly to a standard binary
Apache 2.2.2 build running on Windows.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 40078] - Content-length with Content-Range is incorrect

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40078>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40078


brian@bulkowski.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From brian@bulkowski.org  2006-07-29 15:32 -------
Wait. I'm looking at this more carefully, and the content length is correct.

Sorry for the trouble - please ignore.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 40078] - Content-length with Content-Range is incorrect

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40078>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40078





------- Additional Comments From wrowe@apache.org  2006-07-20 17:27 -------
Brian, could you add one more detail to your report and capture the entire HTTP
headers, and mime header (if one exists) for the first byterange sent?

There are multiple methods here in play, single range, multiple mime ranges,
and the full headers (+ initial mime header if sent) would be helpful to fix
this issue.  Thanks!

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 40078] - Content-length with Content-Range is incorrect

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40078>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40078





------- Additional Comments From brian@bulkowski.org  2006-07-29 15:17 -------
Created an attachment (id=18661)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=18661&action=view)
Conf file for the server in question


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 40078] - Content-length with Content-Range is incorrect

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40078>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40078





------- Additional Comments From brian@bulkowski.org  2006-07-29 15:26 -------
Hi,

I captured the incoming headers using mod_log_forensic.

+764:44cb7787:14|GET /test02.mp4
HTTP/1.1|Range:bytes=12930048-|User-Agent:Bulkowski-Bandwidth-Tester/0.9|Host:localhost%3a8080|Connection:Keep-Alive

As you can see, they're the minimal headers, except for the byte range.
Forensic doesn't seem to capture header response, so I enclose my test program's
log info:

07:58:16 Fetcher: 4 receved range status 206 header bytes
12930048-606683896/606683897
07:58:16 Fetcher: 4 Attempts to download 593753849 bytes

The first line shows the malformed bytes: header - the header should be:
bytes: 12930048-606683896/59375849

I have also attached my server config. This is a *local* server on my local
machine. 2.2.2 install, no fancy modules. I'm simply using localhost.

-b

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 40078] - Content-length with Content-Range is incorrect

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40078>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40078


jorton@redhat.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO




------- Additional Comments From jorton@redhat.com  2006-07-29 12:51 -------
This is not reproducible on Unix, either this is obscure some Windows issue or
there is some local problem (dodgy proxy?).

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org