Skip to content

[Sync] pull issue since recent commit #3613

Closed
@obert01

Description

Work environment

Questions Answers
Type of issue Bug
OS version (server) ubuntu 18.04
PHP version 7.1
MISP version / git hash 2.4.94, one of the latest commits on Sep 5, 2018

Expected behavior

Pulling from a remote mISP server should result in the update/addition of event on local instance.

Actual behavior

I find the following logs in /var/www/MISP/app/tmp/logs/resque-worker-error.log:

2018-09-05 18:23:54 Notice: Undefined variable: passAlong in [/var/www/MISP/app/Model/Server.php, line 2025]
Notice Error: Undefined variable: eventId in [/var/www/MISP/app/Model/Server.php, line 1894]

2018-09-05 18:23:55 Notice: Undefined variable: eventId in [/var/www/MISP/app/Model/Server.php, line 1894]
Notice Error: Undefined variable: k in [/var/www/MISP/app/Model/Server.php, line 1918]

2018-09-05 18:23:55 Notice: Undefined variable: k in [/var/www/MISP/app/Model/Server.php, line 1918]
Notice Error: Undefined variable: k in [/var/www/MISP/app/Model/Server.php, line 1920]

2018-09-05 18:23:55 Notice: Undefined variable: k in [/var/www/MISP/app/Model/Server.php, line 1920]
Notice Error: Undefined variable: eventIds in [/var/www/MISP/app/Model/Server.php, line 1920]

2018-09-05 18:23:55 Notice: Undefined variable: eventIds in [/var/www/MISP/app/Model/Server.php, line 1920]
Warning Error: count(): Parameter must be an array or an object that implements Countable in [/var/www/MISP/app/Model/Server.php, line 1920]

2018-09-05 18:23:55 Warning: count(): Parameter must be an array or an object that implements Countable in [/var/www/MISP/app/Model/Server.php, line 1920]
Warning Error: Division by zero in [/var/www/MISP/app/Model/Server.php, line 1920]

2018-09-05 18:23:55 Warning: Division by zero in [/var/www/MISP/app/Model/Server.php, line 1920]

Steps to reproduce the behavior

Just go to sync actions -> servers, and pull from on of your favorite servers.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions