[Koha-bugs] [Bug 24749] Plack restart should clear orphaned cgi_compile directories on restart
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Sep 10 05:17:50 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24749
--- Comment #4 from David Cook <dcook at prosentient.com.au> ---
That's an interesting one.
I would say that's a CGI::Compile bug/issue.
Looking at https://metacpan.org/release/CGI-Compile/source/lib/CGI/Compile.pm,
it's sad that they use File::Temp for the temporary file but not for the
temporary directory. Bizarre.
It looks like you're setting TMPDIR in the Plack middleware, but that's
probably only going to be relevant to the PSGI application rather than the
Plack code around it.
I'd suggest setting TMPDIR in /etc/koha/plack.psgi. You should be able to call
C4::Context->temporary_directory there.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list