Icinga / icingaweb2-module-x509

Keeps track of certificates as they are deployed in a network environment.
https://icinga.com/docs/x509/latest/
GNU General Public License v2.0
106 stars 24 forks source link

Fatal error `icingacli x509 jobs run` #106

Closed t3easy closed 2 years ago

t3easy commented 2 years ago

Describe the bug

If I run icingacli x509 jobs run I get the error:

PHP Fatal error:  Uncaught Error: Call to a member function getField() on null in /usr/share/icingaweb2/modules/x509/vendor/dragonmantank/cron-expression/src/Cron/CronExpression.php:154
Stack trace:
#0 /usr/share/icingaweb2/modules/x509/vendor/dragonmantank/cron-expression/src/Cron/CronExpression.php(137): Cron\CronExpression->setPart()
#1 /usr/share/icingaweb2/modules/x509/vendor/dragonmantank/cron-expression/src/Cron/CronExpression.php(116): Cron\CronExpression->setExpression()
#2 /usr/share/icingaweb2/modules/x509/library/X509/Scheduler.php(27): Cron\CronExpression->__construct()
#3 /usr/share/icingaweb2/modules/x509/application/clicommands/JobsCommand.php(63): Icinga\Module\X509\Scheduler->add()
#4 /usr/share/icingaweb2/library/Icinga/Cli/Loader.php(267): Icinga\Module\X509\Clicommands\JobsCommand->runAction()
#5 /usr/share/icingaweb2/library/Icinga/Application/Cli.php(164): Icinga\Cli\Loader->dispatch()
#6 /usr/share/icingaweb2/library/Icinga/Application/Cli.php(154): Icinga\Application\Cli->dispatchOnce()
#7 /usr/share/i in /usr/share/icingaweb2/modules/x509/vendor/dragonmantank/cron-expression/src/Cron/CronExpression.php on line 154

Your Environment

Additional context

Add any other context about the problem here.

nilmerg commented 2 years ago

Hi,

thanks for the report, and sorry. That's a bug in a library we've included and didn't test accordingly. :roll_eyes: