-
2009-02-26
schmid
When loading large (≈1MB) PDF files from DokuWiki with Firefox 3.0.6 plus Adobe Reader plugin (Windows XP), the Reader (and sometimes, Firefox) get stuck. Sometimes one gets a blank page, sometimes one has to kill the process or wait for many minutes until timeout.
I have traced the problem to multipart HTTP_RANGE requests sent by the Adobe Reader plugin, e.g.
HTTP_RANGE=bytes=65536-1232373,65536-65537
fetch.php processes only the first part of these, the second part (65536-65537) is ignored.
-
2009-03-13
andi
A patch to support multirange requests was just pushed. We need confirmation if this fixes the problem with Adobe Reader.
-
2009-03-13
schmid
Hi Andi,
thank you for working on this.
Sorry, no real success, some files of about 1 MB size that load well from Apache still freeze Firefox+Adobe Reader. I must admit that I made the changes manually by copy&paste into an editor so it could be also due to a mistake applying the patch, but I don't think so (is there a way to download the modified files somewhere?)
I did not add debug code so far to see what kind of request caused the freeze.
By the way, timeout of the Adobe Reader plugin seems to be about 15 minutes; probably no one will wait that long in front of a frozen browser until the error message comes, saying that the data could not be loaded properly (what made the people at Adobe write such code???)
Michael
-
2009-03-16
Freight
Ive tested the patch and it does not work. I cannot open pdf-files even when they are smaller then 1MB. After calling the page some time, the files are shown. I guess the pdf is not loaded complete, but every call a little bit.
-
2009-03-16
andi
Nightly build DokuWiki snapshots are available from the download page.
HTTP protocol sniffs would be helpful ;-)
-
2009-03-16
andi
Okay got it. Headers were missing a new line. Works now with Adobe Reader 9.1 on Windows.
-
2009-03-16
andi
fixed in devel
-
2009-03-17
schmid
Yes it works (I tried with Adobe Reader 7.0). Thank you!
-
2009-03-17
Freight
Works for me, too. (tried Vista and AR9)
-
2009-04-28
PC
Where do I find that patch? We need to integrate that into a stable dokuwiki-2009-02-14.
I tried to integrate fetch.php and httputils.php from dokuwiki-latest.tgz into our installation of dokuwiki-2009-02-14.tgz.
But this gives the error
''Fatal error: Cannot redeclare http_conditionalrequest() (previously declared in /usr/share/dokuwiki/inc/pageutils.php:539) in /usr/share/dokuwiki/inc/httputils.php on line 61''
when trying to access a file. I didn't dig further. Is there a way to accomplish this?
-
2009-04-28
Freight
This are the files that need an update from dokuwiki-latest.tgz:
feed.php +1 -0 diff | history | annotate
inc/httputils.php [added] diff | history | annotate
inc/pageutils.php +0 -92 diff | history | annotate
lib/exe/css.php +1 -0 diff | history | annotate
lib/exe/fetch.php +2 -54 diff | history | annotate
lib/exe/js.php +1 -0 diff | history | annotate
-
2009-04-30
PC
Great, that works. Thanks a bunch.
-
2009-06-19
jazzmi
Where I can download mentioned patch? (I installed nightly build, but there is a problem with wiki insisting on 2MB upload limit, althought php setting is still 10MB.)
-
2009-06-20
Freight
The patch is inside the nightly build. Do you have a problem with pdf as mentioned in this topic?
-
2009-06-22
jazzmi
Yes, I had also problem with PDFs not loading in Firefox. I replaced files above and it seems to be working, thanks. (Upload limit was diffent problem).
-
Related tasks: