diff --git a/setup/setuputils.class.inc.php b/setup/setuputils.class.inc.php index fc69f16bb..890e3390a 100644 --- a/setup/setuputils.class.inc.php +++ b/setup/setuputils.class.inc.php @@ -562,8 +562,7 @@ class SetupUtils clearstatcache(); if (!is_file($sGraphvizPath) || !is_executable($sGraphvizPath)) { //N°3412 avoid shell injection - return new CheckResult(CheckResult::ERROR, - "$sGraphvizPath could not be executed: Please make sure it is installed and in the path"); + return new CheckResult(CheckResult::WARNING, "$sGraphvizPath could not be executed: Please make sure it is installed and in the path"); } if (!utils::IsWindowsEnvironment()){ diff --git a/test/setup/SetupUtilsTest.php b/test/setup/SetupUtilsTest.php index 47a996bb7..f2f931ce0 100644 --- a/test/setup/SetupUtilsTest.php +++ b/test/setup/SetupUtilsTest.php @@ -47,7 +47,7 @@ class SetupUtilsTest extends ItopTestCase return [ "bash injection" => [ "touch /tmp/toto", - 0, + 1, "could not be executed: Please make sure it is installed and in the path", ], "command ok" => [