I have tried with the XML generated by OCSReports and I get exactly the same error. Is there anything to do with the prolog_conntrack table? I am sticked to this issue because the check_session function in the Inventory.pm module makes a select that returns 0E0, what causes the error.
Any ideas?
sub check_session { my $current_context = shift; my $dbh = $current_context->{DBI_HANDLE}; my $deviceId = $current_context->{DEVICEID}; unless( $ENV{OCS_OPT_SESSION_VALIDITY_TIME} ){ &_log(317,'session', 'always_true') if $ENV{'OCS_OPT_LOGLEVEL'}; return 1; } my $check = $dbh->do('SELECT DEVICEID FROM prolog_conntrack WHERE DEVICEID=? AND (UNIX_TIMESTAMP()-TIMESTAMP<?)', {}, $deviceId, $ENV{OCS_OPT_SESSION_VALIDITY_TIME}); if(!$check){ &_log(526,'session', 'error') if $ENV{'OCS_OPT_LOGLEVEL'}; return 0; } elsif($check==0E0){ &_log(318,'session', 'missing') if $ENV{'OCS_OPT_LOGLEVEL'}; return 0; } else{ &_log(319,'session', 'found') if $ENV{'OCS_OPT_LOGLEVEL'}; return 1; } } |