znuny / Znuny

Znuny/Znuny LTS is a fork of the ((OTRS)) Community Edition, one of the most flexible web-based ticketing systems used for Customer Service, Help Desk, IT Service Management.
https://www.znuny.org
GNU General Public License v3.0
358 stars 85 forks source link

Bug - otrs.Console.pl requires optional dependency #222

Closed rkaldung closed 2 years ago

rkaldung commented 2 years ago

Environment

Expected behaviour

Executing of bin/otrs.Console.pl without any errors

Actual behaviour

Executing of bin/otrs.Console.pl throws this error:

Error: Kernel::System::Console::Command::Dev::Tools::ImportFakeEmails could not be loaded: Can't locate Mail/IMAPClient.pm in @INC (you may need to install the Mail::IMAPClient module) (@INC contains: /opt/otrs/Custom /opt/otrs/Kernel/cpan-lib /opt/otrs /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /opt/otrs/Kernel/System/MailAccount/IMAP.pm line 17.
BEGIN failed--compilation aborted at /opt/otrs/Kernel/System/MailAccount/IMAP.pm line 17.
Compilation failed in require at /opt/otrs/Kernel/System/Console/Command/Dev/Tools/ImportFakeEmails.pm line 20.
BEGIN failed--compilation aborted at /opt/otrs/Kernel/System/Console/Command/Dev/Tools/ImportFakeEmails.pm line 20.
Compilation failed in require at /opt/otrs/Kernel/System/ObjectManager.pm line 255.
 at /opt/otrs/Kernel/System/Console/Command/List.pm line 60.

How to reproduce

Steps to reproduce the behavior:

  1. Install Znuny 6.3.1 only with modules which are required marked by /opt/otrs/bin/otrs.CheckModules.pl
  2. Become the znuny user
  3. Call bin/otrs.Console.pl

Additional information

A workaround is to install Mail::IMAPClient

Screenshots

jepf commented 2 years ago

Fixed for Znuny 6.3.2.