[Koha-bugs] [Bug 31380] Build Mojolicious controller for running Koha plugins
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Aug 18 06:23:36 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31380
David Cook <dcook at prosentient.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #139308|0 |1
is obsolete| |
--- Comment #7 from David Cook <dcook at prosentient.com.au> ---
Created attachment 139314
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=139314&action=edit
Bug 31380: Build core functionality for Mojolicious controllers
This patch adds a new mount point in plack.psgi, which makes Koha
able to run Mojolicious controllers. For example:
http://localhost:8081/cgi-bin/koha/staff/plugins/run
0a) Apply patch
0b) cp debian/templates/plack.psgi /etc/koha/sites/kohadev/plack.psgi
0c) koha-plack --restart
1) Upload Koha Plugin koha-plugin-mojolicious.kpz
2) koha-plack --restart
3) Go to
http://localhost:8081/cgi-bin/koha/staff/plugins/run?class=Koha%3A%3APlugin%3A%3AProsentient%3A%3AMojolicious&method=tool
4) Note that it looks perfect
5) The following URL will generate a 500 error, but technically
the Koha Plugin could easily be crafted to support both CGI and
Mojolicious::Controller
objects:
http://localhost:8081/cgi-bin/koha/plugins/run.pl?class=Koha%3A%3APlugin%3A%3AProsentient%3A%3AMojolicious&method=tool
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list