[Zope-dev] Re: pdf - "Files" not viewable

Florent Guillaume fg@nuxeo.com
Mon, 19 Aug 2002 12:56:01 +0000 (UTC)


Markus Stoll <markus.stoll@junidas.de> wrote:
> This bug has been reported quite often and is still there.
> I debugged this one and here are my findings:
> 
> The reason behind this is the range optimization, that 
> sorts requested http ranges in ascending order 
> (done in OFS/Image.py and ZPublisher/HTTPRangeSupport.py)
> 
> The acrobat plugin is definitely unhappy with these 
> sorted ranges that Zope uses for creating the response.
> Acrobat expects the ranges in the very same order it
> has requested them.
> 
> RFC 2068 is unclear on this point, so I would consider
> it at least questionable whether range sorting is allowed.
> As some clients do not work with sorted ranges it should
> probably be considered as evil.
> 
> I suggest the following bugfix:
> 
> http://www.zope.org/Members/must/Zope_HTTPRange-patch
> 
> This patch applies to Zope 2.4.4 and inhibits any range
> optimization. The Acrobat plugin will display pdf files 
> without any problems after applying this patch.

Can you put this in the Collector?

Thanks,
Florent
-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg@nuxeo.com