[Zope-dev] Re: pdf - "Files" not viewable
Markus Stoll
markus.stoll@junidas.de
Mon, 19 Aug 2002 10:17:00 +0200
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=20
sorts requested http ranges in ascending order=20
(done in OFS/Image.py and ZPublisher/HTTPRangeSupport.py)
The acrobat plugin is definitely unhappy with these=20
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=20
without any problems after applying this patch.
Markus Stoll
--
E-Mail: markus.stoll@junidas.de
Web: http://www.junidas.de/