httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 11601] New: - Failed request with 'Range' header does not return an error reply
Date Sat, 10 Aug 2002 01:19:11 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11601>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11601

Failed request with 'Range' header does not return an error reply

           Summary: Failed request with 'Range' header does not return an
                    error reply
           Product: Apache httpd-2.0
           Version: 2.0.39
          Platform: Other
               URL: http://perl.plover.com/nosuchfileasthis
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: mjd-apache-bugzilla+@plover.com


If I send a request for a nonexistent file as follows:

	GET /nosuchfileasthis HTTP/1.0
	Range: bytes=122-240
	Host: perl.plover.com

I should get a 404 "File not found" response.  Instead, however, I get the
following erroneous response:

	HTTP/1.1 206 Partial Content
	Date: Sat, 10 Aug 2002 01:13:53 GMT
	Server: Apache/2.0.39 (Unix)
	Content-Range: bytes 122-240/288
	Content-Length: 119
	Content-Type: text/html; charset=iso-8859-1

	h1>
	<p>The requested URL /nosuchfileasthis was not found on this server.</p>
	<hr />
	<address>Apache/2.0.39 Server at pe

RFC2616 says that the 206 response is to be used only when the server has
fulfilled the partial GET request.  As you can see, the behavior here is bizarre 
in any case; we seem to have been given bytes 122-240 of the
internally-generated error document.

The error appears in 2.0.36 also.

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


Mime
View raw message