You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Tony Finch <do...@dotat.at> on 2000/10/31 23:30:40 UTC
Re: general/6711: byterange problems in 1.3.14
"William A. Rowe, Jr." <wr...@rowe-clan.net> wrote:
>
>There was a patch to the byterange handling in http_protocol.c
>that possibly corresponds to this issue. I've attached the
>1.3.12->1.3.14 diff below the report. It smells like a bug,
>although it could simply be a bug in Apache's .pdf handling.
>Whichever, we may have broken clients.
The patch is broken. It introduces a new return value for
internal_byterange but it doesn't change all the code that calls
internal_byterange (directly or indirectly) to accommodate the change.
e.g. default_handler calls ap_each_byterange assuming that the return
value is boolean; ap_each_byterange is a wrapper around
internal_byterange which does not return a boolean.
Tony.
--
en oeccget g mtcaa f.a.n.finch
v spdlkishrhtewe y dot@dotat.at
eatp o v eiti i d. fanf@covalent.net
Re: general/6711: byterange problems in 1.3.14
Posted by Greg Stein <gs...@lyra.org>.
On Tue, Oct 31, 2000 at 10:30:40PM +0000, Tony Finch wrote:
> "William A. Rowe, Jr." <wr...@rowe-clan.net> wrote:
> >
> >There was a patch to the byterange handling in http_protocol.c
> >that possibly corresponds to this issue. I've attached the
> >1.3.12->1.3.14 diff below the report. It smells like a bug,
> >although it could simply be a bug in Apache's .pdf handling.
> >Whichever, we may have broken clients.
>
> The patch is broken. It introduces a new return value for
> internal_byterange but it doesn't change all the code that calls
> internal_byterange (directly or indirectly) to accommodate the change.
> e.g. default_handler calls ap_each_byterange assuming that the return
> value is boolean; ap_each_byterange is a wrapper around
> internal_byterange which does not return a boolean.
urk. my fault :-(
Tony: are you going to commit a patch, or shall I dig in?
thx,
-g
--
Greg Stein, http://www.lyra.org/
Re: general/6711: byterange problems in 1.3.14
Posted by Tony Finch <do...@dotat.at>.
Joe Orton <jo...@light.plus.com> wrote:
>On Tue, Oct 31, 2000 at 10:30:40PM +0000, Tony Finch wrote:
>> The patch is broken. It introduces a new return value for
>> internal_byterange but it doesn't change all the code that calls
>> internal_byterange (directly or indirectly) to accommodate the change.
>> e.g. default_handler calls ap_each_byterange assuming that the return
>> value is boolean; ap_each_byterange is a wrapper around
>> internal_byterange which does not return a boolean.
>
>I tried to cover this properly, as per the comment in
>internal_byternage: the new return code is only used when realreq=0 is
>passed in, i.e., only in the call from ap_set_byterange.
>ap_each_byterange passes realreq=1 in, so the -1 will never get
>returned... what am I missing?
You are right -- I missed that. I'm looking at parse_byterange now
because I think that may be the culprit.
Tony.
--
en oeccget g mtcaa f.a.n.finch
v spdlkishrhtewe y dot@dotat.at
eatp o v eiti i d. fanf@covalent.net
Re: general/6711: byterange problems in 1.3.14
Posted by Joe Orton <jo...@light.plus.com>.
On Tue, Oct 31, 2000 at 10:30:40PM +0000, Tony Finch wrote:
> The patch is broken. It introduces a new return value for
> internal_byterange but it doesn't change all the code that calls
> internal_byterange (directly or indirectly) to accommodate the change.
> e.g. default_handler calls ap_each_byterange assuming that the return
> value is boolean; ap_each_byterange is a wrapper around
> internal_byterange which does not return a boolean.
I tried to cover this properly, as per the comment in
internal_byternage: the new return code is only used when realreq=0 is
passed in, i.e., only in the call from ap_set_byterange.
ap_each_byterange passes realreq=1 in, so the -1 will never get
returned... what am I missing?
joe