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

Import source: "Undefined array key "__FORM_CSRF"" while moving a modifier #2870

Closed tectumopticum closed 3 weeks ago

tectumopticum commented 9 months ago

Expected Behavior

Klick in an existing Import source on Tab "Modifiers". Klick on a modifier-entry as if you want to change the entry. On the right column "Prio" klick on the "up"-arrow to move the priority. The entry should move up.

Current Behavior

Instead of moving the entry an exception occurs:

Undefined array key "__FORM_CSRF
#0 /usr/share/icingaweb2/modules/director/library/Director/Web/Form/QuickForm.php(623): Icinga\Application\ApplicationBootstrap->Icinga\Application\{closure}()  
#1 /usr/share/icingaweb2/modules/director/library/Director/Web/Form/DirectorObjectForm.php(790): Icinga\Module\Director\Web\Form\QuickForm->hasBeenSent()
#2 /usr/share/icingaweb2/modules/director/library/Director/Web/Form/QuickForm.php(370): Icinga\Module\Director\Web\Form\DirectorObjectForm->beforeSetup()
#3 /usr/share/icingaweb2/modules/director/library/Director/Web/Form/QuickForm.php(588): Icinga\Module\Director\Web\Form\QuickForm->prepareElements()
#4 /usr/share/icingaweb2/modules/director/library/Director/Web/Form/QuickForm.php(603): Icinga\Module\Director\Web\Form\QuickForm->setRequest()
#5 /usr/share/icingaweb2/modules/director/library/Director/Web/Form/QuickForm.php(382): Icinga\Module\Director\Web\Form\QuickForm->getRequest()
#6 /usr/share/icingaweb2/modules/director/application/controllers/ImportsourceController.php(324): Icinga\Module\Director\Web\Form\QuickForm->handleRequest()
#7 /usr/share/icinga-php/vendor/vendor/shardj/zf1-future/library/Zend/Controller/Action.php(516): Icinga\Module\Director\Controllers\ImportsourceController->editmodifierAction()
#8 /usr/share/php/Icinga/Web/Controller/Dispatcher.php(76): Zend_Controller_Action->dispatch()
#9 /usr/share/icinga-php/vendor/vendor/shardj/zf1-future/library/Zend/Controller/Front.php(954): Icinga\Web\Controller\Dispatcher->dispatch()
#10 /usr/share/php/Icinga/Application/Web.php(294): Zend_Controller_Front->dispatch()
#11 /usr/share/php/Icinga/Application/webrouter.php(105): Icinga\Application\Web->dispatch()
#12 /usr/share/icingaweb2/public/index.php(4): require_once(String)
#13 {main}

Steps to Reproduce (for bugs)

  1. Klick in an existing Import source on Tab "Modifiers".
  2. Klick on a modifier-entry as if you want to change the entry.
  3. On the right column "Prio" klick on the "up"-arrow to move the priority.

Your Environment

carraroj commented 9 months ago

ref/NC/809836

nilmerg commented 9 months ago

I'd like to add that this doesn't happen if one navigates back (with the link in the top left) first and tries to move modifiers then.

lazyfrosch commented 9 months ago

Same happens in sync rules, when you press "Check for changes", then "Trigger Sync"

tectumopticum commented 9 months ago

Same happens in sync rules, when you press "Check for changes", then "Trigger Sync"

I cannot confirm this. Otherwise we would have an severe issue with critical impact for our production-environment.

nilmerg commented 9 months ago

@lazyfrosch Please check your version of the incubator module, it should be 0.22.0

lazyfrosch commented 9 months ago

@nilmerg thanks, just noticed it.