Icinga / icingaweb2-module-director

The Director aims to be your new favourite Icinga config deployment tool. Director is designed for those who want to automate their configuration deployment and those who want to grant their “point & click” users easy access to the configuration.
https://icinga.com/docs/director/latest
GNU General Public License v2.0
413 stars 203 forks source link

Fatal error: Declaration of Icinga\Module\Icingadb\Model\Behavior\ReRoute::rewriteCondition(Icinga\Data\Filter\FilterExpression $expression, $relation = NULL) must be compatible with ipl\Orm\Contract\RewriteFilterBehavior::rewriteCondition(ipl\Stdlib\Filter\Condition $condition, $relation = NULL) in /usr/share/icingaweb2/modules/icingadb/library/Icingadb/Model/Behavior/ReRoute.php on line 10 #2355

Closed JimKlapwijk closed 3 years ago

JimKlapwijk commented 3 years ago

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

The UI shows on the left hand side (where the menu normally is) the following error:

Fatal error: Declaration of Icinga\Module\Icingadb\Model\Behavior\ReRoute::rewriteCondition(Icinga\Data\Filter\FilterExpression $expression, $relation = NULL) must be compatible with ipl\Orm\Contract\RewriteFilterBehavior::rewriteCondition(ipl\Stdlib\Filter\Condition $condition, $relation = NULL) in /usr/share/icingaweb2/modules/icingadb/library/Icingadb/Model/Behavior/ReRoute.php on line 10

This happened after a recent upgrade of Icinga.

Start-Date: 2021-07-12  19:55:55
Commandline: /usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold -o DPkg::Options::=--force-confdef dist-upgrade
Install: icinga-php-common:amd64 (1.0.0-1.buster, automatic), icinga-php-thirdparty:amd64 (0.10.0-1.buster, automatic), icinga-php-library:amd64 (0.6.0-1.buster, automatic)
Upgrade: php-icinga:amd64 (2.8.2-1.buster, 2.9.0-1.buster), icingaweb2-module-monitoring:amd64 (2.8.2-1.buster, 2.9.0-1.buster), icingacli:amd64 (2.8.2-1.buster, 2.9.0-1.buster), icingaweb2-common:amd64 (2.8.2-1.buster, 2.9.0-1.buster), icingaweb2-module-doc:amd64 (2.8.2-1.buster, 2.9.0-1.buster), icingaweb2:amd64 (2.8.2-1.buster, 2.9.0-1.buster)
End-Date: 2021-07-12  19:56:05

Expected behavior

To not see an error and be able to browse through the menu.

Your Environment

Include as many relevant details about the environment you experienced the problem in

# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Icingaweb2 about page, and the error in question: https://imgshare.io/image/schermafbeelding-2021-07-13-om-122141.phOxnf

lippserd commented 3 years ago

Closed in favor of Icinga/icingadb-web#224