Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error editing inhertited services #2533

Closed
wrufeger opened this issue May 9, 2022 · 0 comments · Fixed by #2635
Closed

Error editing inhertited services #2533

wrufeger opened this issue May 9, 2022 · 0 comments · Fixed by #2635
Assignees
Milestone

Comments

@wrufeger
Copy link

wrufeger commented May 9, 2022

Expected Behavior

Open service details same way as direct added services

Current Behavior

Calling https://icinga-server/icingaweb2/director/host/inheritedservice?name=...

Uncaught Error: Call to a member function select() on null in /usr/share/icingaweb2/modules/director/library/Director/Monitoring.php:141
Stack trace:
#0 /usr/share/icingaweb2/modules/director/library/Director/Monitoring.php(41): Icinga\Module\Director\Monitoring->prepareServiceKeyColumnQuery()
#1 /usr/share/icingaweb2/modules/director/library/Director/Monitoring.php(78): Icinga\Module\Director\Monitoring->hasService()
#2 /usr/share/icingaweb2/modules/director/application/controllers/HostController.php(37): Icinga\Module\Director\Monitoring->authCanEditService()
#3 /usr/share/icingaweb2/modules/director/library/Director/Web/Controller/ActionController.php(57): Icinga\Module\Director\Controllers\HostController->checkDirectorPermissions()
#4 /usr/share/icingaweb2/modules/director/library/Director/Web/Controller/ObjectController.php(64): Icinga\Module\Director\Web\Controller\ActionController->init()
#5 /usr/share/icingaweb2/library/Icinga/Web/Controller/ActionController.php(170): Icinga\Module\Director\Web\Controller\ObjectController->init()
#6 /usr/share/icingaweb2/library/Icinga/Web/Controller/Dispatcher.php(59): Icinga\Web\Controller\ActionController->__construct()
#7 /usr/share/icingaweb2/library/vendor/Zend/Controller/Front.php(937): Icinga\Web\Controller\Dispatcher->dispatch()
#8 /usr/share/icingaweb2/library/Icinga/Application/Web.php(304): Zend_Controller_Front->dispatch()
#9 /usr/share/icingaweb2/library/Icinga/Application/webrouter.php(109): Icinga\Application\Web->dispatch()
#10 /usr/share/icingaweb2/public/index.php(4): require_once('...')
#11 {main}
thrown

#0 [internal function]: Icinga\Application\Web->Icinga\Application\{closure}()
#1 {main}

Your Environment

  • Director version (System - About): master (1.9.1)
  • Icinga Web 2 version and modules (System - About): 2.10.1
  • icinga/icinga-php-thirdparty: 0.11.0-dev
  • icinga/icinga-php-library: 0.9.0-dev
  • graphite: 1.2.0
  • icingadb: 1.0.0-rc2
  • incubator: 0.16.0
  • Icinga 2 version (icinga2 --version): r2.13.3-1)
  • Operating System and version: Debian 11
  • Webserver, PHP versions: Apache/2.4.53, PHP 8.0.18 (fpm)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants