[Koha-bugs] [Bug 4855] Tools/Export does not tell browser file size

2022-08-21 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=4855

David Cook  changed:

   What|Removed |Added

 CC||dc...@prosentient.com.au

--- Comment #3 from David Cook  ---
Yeah, this is a tough one.

As Andreas suggests, it's impossible to output the Content-Length unless it
fetches the entire data dump first, and then sends it out. For a large
database, you're not going to be able to do that in RAM, so you're going to
need to use a temporary file. 

The tools/export.pl is actually problematic in general (see Bug 26791). If we
wanted to use a temporary file instead of streaming out the response record by
record, then we'd be best off using a BackgroundJob to prepare the file
(although then you have potential issues with disk space for large data dumps). 

(For a large file it would be more efficient to have Apache httpd serve it as a
static file than for Starman, but then you wouldn't have authentication and
authorization protecting the file if you serve it using Apache httpd. So we'd
probably still use Starman, but we'd need to make sure it was using either a
CGI script or a Mojolicious controller and not Plack since CGI::Emulate::PSGI
buffers the entire HTTP response before sending it out)

But it's something on my mind 

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 4855] Tools/Export does not tell browser file size

2019-05-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=4855

Katrin Fischer  changed:

   What|Removed |Added

 CC||katrin.fisc...@bsz-bw.de
   See Also||https://bugs.koha-community
   ||.org/bugzilla3/show_bug.cgi
   ||?id=6952

--- Comment #2 from Katrin Fischer  ---
Linking to bug 6952 suggesting to show the number of records before download.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the QA Contact for the bug.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 4855] Tools/Export does not tell browser file size

2016-09-13 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=4855

Andreas Roussos  changed:

   What|Removed |Added

 CC||arouss1...@gmail.com

--- Comment #1 from Andreas Roussos  ---
I'm no Perl expert but I had a look and, apparently, tools/export.pl calls
Koha::Exporter::Record::export in order to export the bibliographic/authority
records.

Unless given a filename, the export() subroutine in Koha/Exporter/Record.pm
operates on STDOUT, hence the inability to know the size of the file
beforehand.

So, I think that with the current set of Perl scripts and modules it's not
possible to tell the browser the size of the file in advance...

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 4855] Tools/Export does not tell browser file size

2013-04-13 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=4855

Katrin Fischer katrin.fisc...@bsz-bw.de changed:

   What|Removed |Added

Version|rel_3_0 |master

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/