Use of uninitialized value in concatenation (.) or string

Hilfe zu OTRS Problemen aller Art
Post Reply
hildeb
Znuny newbie
Posts: 42
Joined: 25 Jun 2019, 11:06
Znuny Version: 6.5.4
Real Name: Ralf Hildebrandt
Company: Charite
Contact:

Use of uninitialized value in concatenation (.) or string

Post by hildeb »

Seit ca. 1 Woche sehe ich im Log:

Code: Select all

There was an error executing Execute() in Kernel::System::Console::Command::Maint::Ticket::PendingCheck: Use of uninitialized value in concatenation (.) or string at /opt/znuny-6.0.36/Kernel/System/EmailParser.pm line 750.
Es stellt sich heraus, daß Maint::Ticket::PendingCheck der Schuldige ist:

Code: Select all

# su -c "/opt/otrs/bin/otrs.Console.pl Maint::Ticket::PendingCheck" -s /bin/bash otrs
Process pending tickets...
gpg: WARNING: unsafe permissions on homedir '/opt/otrs/.gnupg'
[Mon Sep  6 09:41:54 2021] otrs.Console.pl: Use of uninitialized value in concatenation (.) or string at /opt/znuny-6.0.36/Kernel/System/EmailParser.pm line 750.
[Mon Sep  6 09:41:54 2021] otrs.Console.pl: Use of uninitialized value in concatenation (.) or string at /opt/znuny-6.0.36/Kernel/System/EmailParser.pm line 750.
[Mon Sep  6 09:41:54 2021] otrs.Console.pl: Use of uninitialized value in concatenation (.) or string at /opt/znuny-6.0.36/Kernel/System/EmailParser.pm line 750.
[Mon Sep  6 09:41:54 2021] otrs.Console.pl: Use of uninitialized value in concatenation (.) or string at /opt/znuny-6.0.36/Kernel/System/EmailParser.pm line 750.
[Mon Sep  6 09:41:54 2021] otrs.Console.pl: Use of uninitialized value in concatenation (.) or string at /opt/znuny-6.0.36/Kernel/System/EmailParser.pm line 750.
[Mon Sep  6 09:41:54 2021] otrs.Console.pl: Use of uninitialized value in concatenation (.) or string at /opt/znuny-6.0.36/Kernel/System/EmailParser.pm line 750.
Done.
Und nun? Wie finde ich heraus was hier die Ursache ist?

znuny-6.0.36
hildeb
Znuny newbie
Posts: 42
Joined: 25 Jun 2019, 11:06
Znuny Version: 6.5.4
Real Name: Ralf Hildebrandt
Company: Charite
Contact:

Re: Use of uninitialized value in concatenation (.) or string

Post by hildeb »

Zeile 750 decodiert das Subject und baut daraus einen String:

Code: Select all

        my $Subject = $Self->_DecodeString( String => $SubjectString ) . '.eml';
Wenn ich das korrigiere zu:

Code: Select all

        my $Subject = $Self->_DecodeString( String => $SubjectString )||"" . '.eml';
ist die Warnung weg.
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Use of uninitialized value in concatenation (.) or string

Post by root »

Hallo Ralf,

danke für die Info, ich mache das mal ein Issue drauss.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Post Reply