-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migration: Perl module check with OTOBO running under Apache #1512
Comments
The error comes from the effect that A bit of digging revealed the error produced from
So the real problem is the module CGI, which is a dependency of CG::PSGI. The relevant code is:
That MOD_PERL is set is fine, after all the application runs under the mod_perl response handler Thus, let's create a workaround in bin/otobo.CheckModules.pl . When checking CGI::PSGI let's pretend that we are not running under MOD_PERL. The response handler actually does the same thing when the PSGI app is loaded, https://metacpan.org/dist/Plack/source/lib/Plack/Handler/Apache2.pm. |
The "delete local" construct allows temporarily hiding an environment variable, see https://www.effectiveperlprogramming.com/2010/08/temporarily-remove-hash-keys-or-array-elements-with-delete-local/. |
A test migration targeting OTOBO 10.1.x running under Apache looked fine. Closing this issue. |
When running otobo.CheckModules under Apache/mod_perl during migration.
Issue #1512: pretend to not run under mod_perl.
Tested the migration with OTOBO 10.1.x under Apache as the target. The version check is fine. So the issue can be closed.
But there is another error right after the OTOBO version check. Opening a new issue for that,
Originally posted by @bschmalhofer in #1510 (comment)
The text was updated successfully, but these errors were encountered: