[Zope-Coders] Re: [ZC] 671/ 3 Accept "broken handling of range requests"

Chris McDonough chrism@zope.com
13 Nov 2002 11:26:21 -0500


FWIW, I have seen the same thing under the 2.6 branch with a large pdf
but only via Acrobat.  Normal download via browser works fine.  If you
want to come downstairs, I can reproduce it for you...

On Wed, 2002-11-13 at 11:09, Collector: Zope Bugs, Features, and Patches
... wrote:
> Issue #671 Update (Accept) "broken handling of range requests"
>  Status Accepted, Zope/bug critical
> To followup, visit:
>   http://collector.zope.org/Zope/671
> 
> ==============================================================
> = Accept - Entry #3 by mj on Nov 13, 2002 11:09 am
> 
>  Status: Pending => Accepted
> 
>  Supporters added: mj
> 
> Have you got a set of headers and an image that can reproduce this?
> ________________________________________
> = Comment - Entry #2 by htrd on Nov 13, 2002 4:00 am
> 
> As a temporary workaround I am currently disabling range requests, using this patch:
> 
> diff -c -1 -r1.141.4.1 Image.py
>  *** Image.py 4 Oct 2002 19:52:51 -0000 1.141.4.1
>  --- Image.py 12 Nov 2002 16:43:01 -0000
>  ***************
>  *** 176,177 ****
>  --- 176,178 ----
>  range = REQUEST.get_header('Range', None)
>  + range = None # inhibited by Toby 2002-11-12
>  request_range = REQUEST.get_header('Request-Range', None)
> 
> ________________________________________
> = Request - Entry #1 by htrd on Nov 12, 2002 11:34 am
> 
> I have a number of these tracebacks in my error log:
> 
> Traceback (innermost last):
>   Module ZPublisher.Publish, line 98, in publish
>   Module ZPublisher.mapply, line 88, in mapply
>   Module ZPublisher.Publish, line 39, in call_object
>   Module Products.zwww.Article, line 69, in index_html
>   Module OFS.DTMLMethod, line 126, in __call__
>   Module DocumentTemplate.DT_String, line 474, in __call__
>   Module DocumentTemplate.DT_Return, line 33, in render
>   Module DocumentTemplate.DT_Util, line 201, in eval
>    - __traceback_info__: body
>   Module <string>, line 2, in f
>   Module OFS.Image, line 328, in index_html
> KeyError: 196608
> 
> ==============================================================
>