The use of Plack reveled that the use of CGI hook is not allowed, see Bug 15218. Looks like this is used by Koha::Uploader::cgi() : my $query = CGI::->new( sub { $self->_hook(@_); }, {}, 0 );
I must say failure is random on file upload. Large files seams to make it worth.
A quick dirty fix is in Koha/Uploader.pm use constant BYTES_DIGEST => 2048; Change 2048 with a huge number, upload will not need hook.
Still valid with 19.11
This is linked to #22417, but I don't think it's actually relevant.
Is this related to any scripts that are still being proxied to Plack? Maybe "tools/upload-file.pl"?
(In reply to David Cook from comment #5) > Is this related to any scripts that are still being proxied to Plack? > > Maybe "tools/upload-file.pl"? Indeed, I mean it appears when all perl is through plack (we use nginx instead of apache).
Hmm certainly one that needs to be looked into O_O.
Still valid :(
Can't say that it's a priority for me as I haven't had any problems but this is unfortunate :(
One day I want to finish Bug 26791 which will provide a template for rewriting problematic Koha code to be PSGI compliant but until then...