On Sun, Jan 20, 2002 at 11:16:36PM +0100, Tanalahy wrote:
As a beginner in Zope I created an intranet solution for 1800 employees in a big factory. People should be able to publish documents, but there occurs a problem with PDF files.
PDF's imported by the manager's add-file-dialog can be seen by users with MS Internet Explorer 5.0 and Adobe Acrobat Reader 3.0 - 4.0.
But I wrote another more special upload dialog, which uses the add-file method too. But by this way, PDF's cannot be displayed by the above constellation, even all the properties look the same. The file type is "application/pdf", but MS 5.0 browsers complain, that no appropriate viewer can be found.
Only upgrading to IE 5.5 with Acrobat 5.0 makes no difference.
Does anyone have some idea what makes the difference or can provide a solution. We soon should publish the intranet solution, but we cannot upgrade all the workstations. So we are in unexpected trouble. Need help soon.
This was a (now fixed) bug in Zope's HTTP Range support. Acrobat plays close to the metal as far as HTTP Ranges go, causing the bug to surface. The bug has been fixed in the 2.5.0 betas (starting with b2), and will be in the upcoming 2.4.4 release as well. I have (again) attached the 2.4.x versions of the fixed files to this email. They replace lib/python/OFS/Image.py and lib/python/ZPublisher/HTTPRangeSupport.py. Just drop these in your Zope 2.4.3 and PDF publishing should be fixed. -- Martijn Pieters | Software Engineer mailto:mj@zope.com | Zope Corporation http://www.zope.com/ | Creators of Zope http://www.zope.org/ ---------------------------------------------