Re: pdf - "Files" not viewable
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. Markus Stoll -- E-Mail: markus.stoll@junidas.de Web: http://www.junidas.de/
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
On Mon, Aug 19, 2002 at 10:17:00AM +0200, Markus Stoll wrote:
This bug has been reported quite often and is still there. I debugged this one and here are my findings:
I fixed this in 2.5 already. What version are you experiencing this in? -- Martijn Pieters | Software Engineer mailto:mj@zope.com | Zope Corporation http://www.zope.com/ | Creators of Zope http://www.zope.org/ ---------------------------------------------
On Mon, Aug 19, 2002 at 10:17:00AM +0200, Markus Stoll wrote:
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.
Sorry, further reading on my part. What Acrobat reader version, Browser version and Zope version? *Not* sorting the ranges causes considerable performance loss on the Zope server. I have tested Acrobat reader version 5 on Mozilla (0.9 and up), Netscape 4.7 and Internet Explorer 5.5 and up with this and all combinations work with the current code. There was a bug in the way ranges that touch upon each other (no overlap, just no seam) were optimized away, and the way Netscape 4.7 uses a draft version of the spec instead of the released version. These have been fixed. As the spec does not prohibit sorting, and perfomance loss is fenomenal on large files, I would need considerable justification for not using sorted ranges. If you use Zope 2.4, then you are probably experiencing one of the above mentioned bugs. -- Martijn Pieters | Software Engineer mailto:mj@zope.com | Zope Corporation http://www.zope.com/ | Creators of Zope http://www.zope.org/ ---------------------------------------------
participants (3)
-
Florent Guillaume -
Markus Stoll -
Martijn Pieters