]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/bugs/attachment:_failed_to_get_filehandle.mdwn
web commit by http://ptecza.myopenid.com/: * Still no success
[ikiwiki.git] / doc / bugs / attachment:_failed_to_get_filehandle.mdwn
index bd8ef171558f1359ef1d90011c63d36dc2cea899..8a9e1dde08d8f69884e8ec64cf7fbdfed000fc63 100644 (file)
@@ -37,10 +37,39 @@ the error message like below:
 >>>>> older than 2.47. Can you find your system's CGI.pm and grep for
 >>>>> "VERSION" in it to determine the version? I checked debian stable.
 >>>>> and its perl 5.8.8 has version 3.15, so is not affected, I think.
->>>>> 
+
+>>>>>> I have CGI.pm 3.15 too: 
+
+>>>>>>     $ grep VERSION= /usr/share/perl/5.8.8/CGI.pm
+>>>>>>     $CGI::VERSION='3.15';
+
 >>>>> I've just checked in a fix that should work, can you test it?
 >>>>> [diff](http://git.ikiwiki.info/?p=ikiwiki;a=commitdiff;h=71f10579c00a8ddc20ada1a1efd33aac25a3da7e) --[[Joey]]
 
+>>>>>> I've patched `attachment.pm` module, but the bug still occurs.
+>>>>>> However I can see a little progress. I changed invoking `error()`
+>>>>>> subroutine like you showed me before and now Ikiwiki prints
+
+>>>>>>     failed to get filehandle:test.txt ; file:sandbox/test.txt ; is ref:
+
+>>>>>> --[[PaweÅ‚|ptecza]]
+
+>>>>>>> Well then, your CGI.pm is somehow not behaving as its documentation
+>>>>>>> describes, in two ways:
+>>>>>>> 1. `upload()` is not returning a reference to the filehandle
+>>>>>>> 2. The filename returned by `param("attachment")` is not also
+>>>>>>>    a file handle.
+>>>>>>> That seems very broken. I can try to work around it some more
+>>>>>>> though. I've checked in a second try at dealing with things, can
+>>>>>>> you try it? --[[Joey]]
+
+>>>>>>>> Do you mean that [diff](http://git.ikiwiki.info/?p=ikiwiki;a=commitdiff;h=66f35e30dcea03c631a293e2341771277543b4ae)?
+>>>>>>>> If so, then it causes "Internal Server Error" for me:
+
+>>>>>>>>     Can't use string ("test.txt") as a symbol ref while "strict refs" in use at /usr/share/perl5/IkiWiki/Plugin/attachment.pm line 144.
+
+>>>>>>>> I can rebuild Debian stable source package with CGI for Perl. Maybe it will help me? What do you think? --[[PaweÅ‚|ptecza]]
+
 The same message I can see in the Apache log file. There is also
 following warning: