[gelöst]CMDB '500 Internal Server Error' bei Seitenwechsel

Hilfe zu Znuny Problemen aller Art
Locked
eXe2001
Znuny newbie
Posts: 47
Joined: 15 Aug 2014, 08:22
Znuny Version: 5.0.26

[gelöst]CMDB '500 Internal Server Error' bei Seitenwechsel

Post by eXe2001 »

Hallo,

OTRS: 3.3.9
ITSM: 3.3.4

Wenn man eine Suche im CMDB startet, z.B.: 'Computer' und 'Install Date' als Filter verwendet wird die Suche zwar ausgeführt, jedoch erhält man bei dem Versuch auf Seite 2 zu wechseln oder die Sortierung zu ändern:

Code: Select all

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Apache error.log:

Code: Select all

[error] Can't use string ("1") as a HASH ref while "strict refs" in use at /opt/otrs//Kernel/Output/HTML/ITSMConfigItemLayoutDate.pm line 206.\n
Ausschnitt der Datei:

Code: Select all

    # get form data
    my $Used;
    my $StartDay;
    my $StartMonth;
    my $StartYear;
    my $StopDay;
    my $StopMonth;
    my $StopYear;

    if ( $Param{Value} ) {
        $Used       = $Param{Value}->{ $Param{Key} };         <-----------------------------------------------------------line 206
        $StartDay   = $Param{Value}->{ $Param{Key} . '::TimeStart::Day' };
        $StartMonth = $Param{Value}->{ $Param{Key} . '::TimeStart::Month' };
        $StartYear  = $Param{Value}->{ $Param{Key} . '::TimeStart::Year' };
        $StopDay    = $Param{Value}->{ $Param{Key} . '::TimeStop::Day' };
        $StopMonth  = $Param{Value}->{ $Param{Key} . '::TimeStop::Month' };
        $StopYear   = $Param{Value}->{ $Param{Key} . '::TimeStop::Year' };
    }
    else {
        $Used       = $Self->{ParamObject}->GetParam( Param => $Param{Key} );
        $StartDay   = $Self->{ParamObject}->GetParam( Param => $Param{Key} . '::TimeStart::Day' );
        $StartMonth = $Self->{ParamObject}->GetParam( Param => $Param{Key} . '::TimeStart::Month' );
        $StartYear  = $Self->{ParamObject}->GetParam( Param => $Param{Key} . '::TimeStart::Year' );
        $StopDay    = $Self->{ParamObject}->GetParam( Param => $Param{Key} . '::TimeStop::Day' );
        $StopMonth  = $Self->{ParamObject}->GetParam( Param => $Param{Key} . '::TimeStop::Month' );
        $StopYear   = $Self->{ParamObject}->GetParam( Param => $Param{Key} . '::TimeStop::Year' );
    }
    if (
        $Used
        && $StartDay && $StartMonth && $StartYear
        && $StopDay  && $StopMonth  && $StopYear
        )
    {
        my $StartDate = sprintf '%02d-%02d-%02d', $StartYear, $StartMonth, $StartDay;
        my $StopDate  = sprintf '%02d-%02d-%02d', $StopYear,  $StopMonth,  $StopDay;

        return { '-between' => [ $StartDate, $StopDate ] };
    }

    return [];    # no conditions by default
}
Bei einer Suche ohne Filter oder der Navigation über die Übersicht treten keinerlei Probleme auf.

Bug im ITSM?
Hat jemand das gleiche problem?
Last edited by eXe2001 on 09 Mar 2015, 09:48, edited 1 time in total.
wurzel
Znuny guru
Posts: 3273
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: CMDB '500 Internal Server Error' bei Seitenwechsel

Post by wurzel »

Hi,

aktualisier mal auf die aktuelle ITSM und teste erneut

Flo
OTRS 2025 SILVER (Prod)
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
eXe2001
Znuny newbie
Posts: 47
Joined: 15 Aug 2014, 08:22
Znuny Version: 5.0.26

Re: CMDB '500 Internal Server Error' bei Seitenwechsel

Post by eXe2001 »

Auch nach einem ITMS Update auf 3.3.9 besteht das Problem weiterhin.
Ein Upgrade auf OTRS 3.3.10 ist derzeit noch nicht geplant.
eXe2001
Znuny newbie
Posts: 47
Joined: 15 Aug 2014, 08:22
Znuny Version: 5.0.26

[gelöst]Re: CMDB '500 Internal Server Error' bei Seitenwechsel

Post by eXe2001 »

Hallo,

das System läuft nun mit OTRS 4.0.6 und ITSM 4.0.6, leider erhalte ich nach wie vor selbigen fehler sobald Datumsfilter gesetzt werden.

Edit:
Grade nochmal probiert das "use strict;" auszukommentieren, hat in der früheren Version nicht funktioniert, nun scheint es zu klappen.
Locked