-
Notifications
You must be signed in to change notification settings - Fork 74
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
installer.pl does not check for changed file Kernel/Config.pm #1575
Comments
as the config module is loaded via the object manager
as the config module is loaded via the object manager
by using a join instead of concatenation
used for debuggings, commented out per default
also using map and join for generating a message
Avoiding that the module is modified before the first check.
Issue #1575 reload kernel config
No new insights turned up, why this wasn't an issue before. For fixing the bug I added the refresh of Kernel/Config.pm in otobo.psgi . Care had to be taken that Kernel/Config.pm is in the refresh cache before the first check. Otherwise the following situation could arise:
|
I tested installer.pl with a local Apache and the apache2-httpd-cgi.include.conf configuration. Installing was without hassle. But there were errors after the installation was completed. Looks like we need a bit more testing and maybe fixing. |
Adding a sprinkling of 'our $Self;' while we are at it.
Because this is called before otobo.psgi kicks in
because the file is explicitly checked above
Looked again what
Made the changes and did quick tests of installer.pl.
The quick tests looked fine and the test suite looked fine too. Except #1587. |
…fig_another_attempt Issue #1575 update kernel config another attempt
Can this be closed? We are already one step further anyways, I guess, aren't we? |
The reloading of Kernel/Config.pm appears to be more sane now. Note that there was yet another iteration handled in issue #1594. Closing this issue. |
During testing for OTOBO 10.1.1 Beta2 @svenoe noticed database connection failures while running installer.pl . This was almost certainly caused by the web server process having still loaded an unchanged version of Kernel::Config. This is relevant as Kernel/Modules/Installer.pm writes the new database credentials into that file.
The big mystery is why this behavior was noticed only now. Doing a test installation with OTOBO 10.1.1 Beta2 showed the same error.
A possible solution is to check for every request whether Kernel/Config.pm has changed. This is basically the same check as done in
Kernel::Config::Defaults:;new()
for possibly changed ZZZ*.pm files.While we are at it, we should also check for explicit
use Kernel::Config;
statements. These statements should be avoided unless they are really necessary. But they are not really the culprit as the object manager calls under the hood alsorequire Kernel::Config
.The text was updated successfully, but these errors were encountered: