[Koha-bugs] [Bug 26791] New: Build Mojolicious controller replacement for export.pl

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Oct 23 01:02:22 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26791

            Bug ID: 26791
           Summary: Build Mojolicious controller replacement for export.pl
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Tools
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: dcook at prosentient.com.au
        QA Contact: testopia at bugs.koha-community.org

As per my notes on Bug 8437, starting at
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8437#c33, any Koha
.pl script that needs to stream a large response to a client web browser is
never going to work, so long as we're using Plack::App::CGIBin to create a PSGI
handler. 

While I tried to create my own streaming version of Plack::App::WrapCGI, I
found a third-party module to be buggy, and that writing my own would be
prohibitive in terms of time and energy. It's also architectural glue code that
we really might not want to maintain long-term.

So I've concluded that an alternative would be to write a Mojolicious
controller to replace export.pl. While CGI Koha can still use export.pl, when
we're using Starman/Plack, we can redirect to the appropriate Mojolicious
endpoint.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list