Skip to content
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

Remove obsolete files from Kernel/cpan-lib #3413

Closed
bschmalhofer opened this issue May 22, 2024 · 2 comments
Closed

Remove obsolete files from Kernel/cpan-lib #3413

bschmalhofer opened this issue May 22, 2024 · 2 comments
Labels
docker Docker related issues installation Concerning the installation of OTOBO
Milestone

Comments

@bschmalhofer
Copy link
Contributor

This issue originates from the OTOBO forum, see https://otobo.io/forums/topic/update-des-moduls-httpmessage-schlaegt-fehl/.

When upgrading from e.g. OTOBO 10.1 to OTOBO 11.0 the new content of /opt/otobo is merged into the existing /opt/otobo . This means that framework files, that have been removed in the new version, stick around. In the case of Kernel/cpan-lib this has the effect that old CPAN modules might be used. This was noticed for HTTP::Message. The version 6.13 from _ /opt/otobo/Kernel/cpan-lib/HTTP/Message.pm _ has precedence over HTTP::Message 6.45 from /opt/otobo_install/local/lib/perl5/HTTP/Message.pm. This was not intended.

One possible solution is to move Kernel/cpan-lib to a backup directory during the upgrade. This could be done in the function do_update_tasks in bin/docker/entrypoint.sh.

The same applies for native installations, but in that case it is more of an documentation issue.

@bschmalhofer bschmalhofer added docker Docker related issues installation Concerning the installation of OTOBO labels May 22, 2024
bschmalhofer added a commit that referenced this issue May 23, 2024
before copying /opt/otobo_install/otobo_next into /opt/otobo.
Old Perl module should not linger.
bschmalhofer added a commit that referenced this issue May 24, 2024
before copying /opt/otobo_install/otobo_next into /opt/otobo.
Old Perl module should not linger.
bschmalhofer added a commit that referenced this issue May 24, 2024
from var/backup_cpan_lib to backup
bschmalhofer added a commit that referenced this issue May 27, 2024
so that no old versions of Perl modules will linger around
bschmalhofer added a commit that referenced this issue May 27, 2024
so that no old versions of Perl modules will linger around
@bschmalhofer
Copy link
Contributor Author

Added the special handling of Kernel/cpan-lib . A quick test looked fine. PR is merged. Closing this issue.

@bschmalhofer bschmalhofer added this to the OTOBO 11.0.2 milestone May 27, 2024
@bschmalhofer
Copy link
Contributor Author

See also #663

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docker Docker related issues installation Concerning the installation of OTOBO
Projects
None yet
Development

No branches or pull requests

1 participant